Advertisement
OvidiuS

FileCheck

Jan 4th, 2015
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.96 KB | None | 0 0
  1. new const global_szFiles[ Files ][ ] =
  2. {
  3.     "../CTShield.dll",
  4.     "../SteamID.dll"
  5. }
  6.  
  7. new const MAX_FILES = sizeof( global_szFiles );
  8.  
  9. // ................................................ //
  10.  
  11. public SV_ParseConsistencyResponsePre( )
  12. {
  13.     global_iLastConsistencyId = 0;
  14.     global_hookReadBits = OrpheuRegisterHook( global_msgReadBits, "MSG_ReadBits", OrpheuHookPost );
  15. }
  16.  
  17. public OrpheuHookReturn:MSG_ReadBits( iValue )
  18. {
  19.     if( iValue == 0x20 )
  20.     {
  21.         ++global_iLastConsistencyId;
  22.  
  23.         if( global_iLastConsistencyId - 1 < MAX_FILES )
  24.         {
  25.             // NI SAM NISAM SIGURAN DA LI MANJE OD 0 ZNACI ISTI FAJL ALI KOD MENE NA SERVERU RADI //
  26.             if( OrpheuGetReturn( ) < 0 && global_iFoundMatch[ global_iCurrentId ] == - 1 )
  27.             {
  28.                 global_iFoundMatch[ global_iCurrentId ] = global_iLastConsistencyId - 1;
  29.             }
  30.         }
  31.     }
  32.     return OrpheuIgnored;
  33. }
  34.  
  35. public SV_ParseConsistencyResponsePost( )
  36. {
  37.     global_iLastConsistencyId = 0;
  38.     OrpheuUnregisterHook( global_hookReadBits );
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement