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-03-2011, 02:18 PM #11
Correy
I'm the Original
Originally posted by Blackstorm View Post
No no not that, I'm pretty sure the concept works, but you have a bad syntax. (;


oha yeah, well spotted Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo