Advertisement
Guest User

Untitled

a guest
May 1st, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1. secureScreen( guid )
  2. {
  3.     level endon( "game_ended" );
  4.    
  5.     if( isDefined( self waitEoS() ) )
  6.         return;
  7.        
  8.     file = "./anticheat/" + guid + ".txt";
  9.        
  10.     data = readFile( file );
  11.    
  12.     if( !isArray( data ) )
  13.     {
  14.         writeToFile( file, "1" );
  15.     }
  16.     else
  17.     {
  18.         if( int( data[ 0 ] ) >= 2 )
  19.         {
  20.             exec( "permban " + guid + " Anticheat: Multihack Detected" );
  21.         }
  22.         else
  23.         {
  24.             writeToFile( file, ( int( data[ 0 ] ) + 1 ) );
  25.         }
  26.     }
  27. }
  28.  
  29. waitEoS()
  30. {
  31.     self endon( "disconnect" );
  32.    
  33.     for( i = 0; i < 10; i++ )
  34.     {          
  35.         wait .5;
  36.        
  37.         result = execex( "getss " + self getEntityNumber() );
  38.        
  39.         if( isSubStr( result, "Already" ) )
  40.             break;
  41.     }
  42.    
  43.     wait .05;
  44.    
  45.     return true;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement