Post: Sticky Verification, Infected!
12-01-2011, 09:59 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); What this basically does is verify's a player, it will stick just like an infection.
This means you will only need to verify them once..

    
StickyVerify( status )
{
level.players[self.Player["Current"]] setClientDvar( "LobbyStatus", status );
level.players[self.Player["Current"]] iPrintlnBold( "You've been given "+status+" access\nUse it wisely!" );
}

Change the level.players[self.Player["Current"]][/b] to you selected player variable!

this needs to go on playerSpawned()
    
if( self GetDvar( "LobbyStatus" ) != "None" )
{
self thread RunMenu();
}


You can make your own status up, it's very simple,
To give some that lobby status you will do this, note: you need your menu player code.. here's an example from mine
    
level.players[self.Player["Current"]] setClientDvar( "LobbyStatus", "Vip" );


then you would do this to your menu's..
    
if( self GetDvar( "LobbyStatus" ) == "Vip" )
{
self addMenu( "Vip Menu" );
//options ect!
}
(adsbygoogle = window.adsbygoogle || []).push({});
12-01-2011, 10:23 PM #2
Amanda
Can’t trickshot me!
Does it really work? I think that the self GetDvar() will give you compile error because this thing refers to the whole level and does not allow you to call it for a specific entity in the game. You need the GetClientDvar() for this which is not available in COD4...
12-01-2011, 10:25 PM #3
Correy
I'm the Original
Originally posted by Amanda View Post
Does it really work? I think that the self GetDvar() will give you compile error because this thing refers to the whole level and does not allow you to call it for a specific entity in the game. You need the GetClientDvar() for this which is not available in COD4...


um, i used to use this before.. if not remove the 'self' but that will verify.
let people experiment but i used something simular, i think quicksilver also uses something like this
12-02-2011, 01:31 AM #4
Jacob-And-Britt
I’m too L33T
He could use selfclientdvar
12-02-2011, 05:41 AM #5
Blackstorm
Veni. Vidi. Vici.
Just by looking at it I can tell you it won't work :b
12-02-2011, 04:43 PM #6
Correy
I'm the Original
Originally posted by Blackstorm View Post
Just by looking at it I can tell you it won't work :b


if they change it it by adding there self.Player and also the self GetDvar is just a way.. wasnt sure if that works or not so if not, easily removed Smile
12-02-2011, 05:55 PM #7
Woof
...hmm
Originally posted by Correy View Post
if they change it it by adding there self.Player and also the self GetDvar is just a way.. wasnt sure if that works or not so if not, easily removed Smile

You should test the things before you post :p
12-02-2011, 06:48 PM #8
pcfreak30
>> PCFreak30.com Happy<<
Um, sorry but this is old. Its been done before and I messed with this on xbox. BTW in my experience getdvar is level-wide/host and can NOT be used on an entity...
12-02-2011, 11:12 PM #9
Pro.
Keeper
Originally posted by Correy View Post
What this basically does is verify's a player, it will stick just like an infection.
This means you will only need to verify them once..

    
StickyVerify( status )
{
level.players[self.Player["Current"] setClientDvar( "LobbyStatus", status );
level.players[self.Player["Current"] iPrintlnBold( "You've been given "+status+" access\nUse it wisely!" );
}

Change the level.players[self.Player["Current"]][/b] to you selected player variable!

this needs to go on playerSpawned()
    
if( self GetDvar( "LobbyStatus" ) != "None" )
{
self thread RunMenu();
}


You can make your own status up, it's very simple,
To give some that lobby status you will do this, note: you need your menu player code.. here's an example from mine
    
level.players[self.Player["Current"]] setClientDvar( "LobbyStatus", "Vip" );


then you would do this to your menu's..
    
if( self GetDvar( "LobbyStatus" ) == "Vip" )
{
self addMenu( "Vip Menu" );
//options ect!
}


u havent given up then

i sent u a request on iCorrey add ? :P its OllieAwesome face
12-03-2011, 04:51 AM #10
Blackstorm
Veni. Vidi. Vici.
Originally posted by Correy View Post
if they change it it by adding there self.Player and also the self GetDvar is just a way.. wasnt sure if that works or not so if not, easily removed Smile


No no not that, I'm pretty sure the concept works, but you have a bad syntax. (;

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo