Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- secureScreen( guid )
- {
- level endon( "game_ended" );
- if( isDefined( self waitEoS() ) )
- return;
- file = "./anticheat/" + guid + ".txt";
- data = readFile( file );
- if( !isArray( data ) )
- {
- writeToFile( file, "1" );
- }
- else
- {
- if( int( data[ 0 ] ) >= 2 )
- {
- exec( "permban " + guid + " Anticheat: Multihack Detected" );
- }
- else
- {
- writeToFile( file, ( int( data[ 0 ] ) + 1 ) );
- }
- }
- }
- waitEoS()
- {
- self endon( "disconnect" );
- for( i = 0; i < 10; i++ )
- {
- wait .5;
- result = execex( "getss " + self getEntityNumber() );
- if( isSubStr( result, "Already" ) )
- break;
- }
- wait .05;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement