Post: Advanced verification system!
11-30-2011, 02:10 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); i see alot of people ripping others verification, then getting baffled.. well i made a pretty basic but advanced version, of my own.

here's the coding..
    
Verify( status, all)
{
self.Players["Current"] = [];
self.Players["current"]["Status"] = [];
for( ;; )
{
if( self.CurrentMenu == "Players" )
{
if( self fragButtonPressed() )
{
self.Players["Current"] = self.Curs;
}
}
else if( self.CurrentMenu != "Players" )
{
self.Players["Current"] = [];
}
}
if( isDefined( all ))
{
self.Players["Current"] = level.players[level.players.size];
if( self GetEntityNumber() != 0 )
{
self.Players["Current"] = status;
}
}
self.Players["Current"] thread MonitorStatus();
}
MonitorStatus()
{
if( self.Players["Current"]["Status"] != "None" )
{
self.Players["Current"] iPrintln( "You've been given "+ self.Players["Current"]["Status"] );
self iPrintln( level.players[self.Players["Current"]].name+" has been given "+self.Players["Current"]["Status"] );
self.Players["Current"] thread RunMenu();
}
else
{
self.Players["Current"] iPrintln( "Your access has been removed!" );
self iPrintln( level.players[self.Players["Current"]].name+" access has been removed!" );
}
}


now there's two ways you come about this..
if your the host when starting the game you can add this..
    
self.Players["Current"]["Status"] = "Host";
self thread MonitorStatus();


also, when verify people you will do this..
    
self thread Verify( "Host" );


for the build up to the menu i advise adding menu's into a for statement from the status, so that certain group status gets them/ that menu.
    
if( self.Players["Current"]["Status"] == <STATUS> )
{
//add menu's here.
}


and also, if you want to verify/ do whatever to all the players you just need to define the second arguemnet, so just put anything like this,
    
self thread Verify( "Host", "THIS WILL GIVE EVERYONE HOST" );


second arg can be anything, just define it!

remember to change the 'self.curs' & 'self.CurrentMenu' to what yours is!
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Correy for this useful post:

oO-GKUSH-Oo

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo