Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new const global_szFiles[ Files ][ ] =
- {
- "../CTShield.dll",
- "../SteamID.dll"
- }
- new const MAX_FILES = sizeof( global_szFiles );
- // ................................................ //
- public SV_ParseConsistencyResponsePre( )
- {
- global_iLastConsistencyId = 0;
- global_hookReadBits = OrpheuRegisterHook( global_msgReadBits, "MSG_ReadBits", OrpheuHookPost );
- }
- public OrpheuHookReturn:MSG_ReadBits( iValue )
- {
- if( iValue == 0x20 )
- {
- ++global_iLastConsistencyId;
- if( global_iLastConsistencyId - 1 < MAX_FILES )
- {
- // NI SAM NISAM SIGURAN DA LI MANJE OD 0 ZNACI ISTI FAJL ALI KOD MENE NA SERVERU RADI //
- if( OrpheuGetReturn( ) < 0 && global_iFoundMatch[ global_iCurrentId ] == - 1 )
- {
- global_iFoundMatch[ global_iCurrentId ] = global_iLastConsistencyId - 1;
- }
- }
- }
- return OrpheuIgnored;
- }
- public SV_ParseConsistencyResponsePost( )
- {
- global_iLastConsistencyId = 0;
- OrpheuUnregisterHook( global_hookReadBits );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement