nomy

Null Sound Exploit Fix

Apr 17th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <sdktools>
  2. #pragma semicolon 1
  3.  
  4. public OnPluginStart()
  5. {
  6.     AddNormalSoundHook(NullSound);
  7. }
  8.  
  9. public Action NullSound(int clients[MAXPLAYERS], int &numClients, char sample[PLATFORM_MAX_PATH], int &entity, int &channel, float &volume, int &level, int &pitch, int &flags, char soundEntry[PLATFORM_MAX_PATH], int &seed)
  10. {
  11.     if(StrContains(sample, "null.wav") != -1)
  12.     {
  13.         return Plugin_Stop;
  14.     }
  15.     return Plugin_Continue;
  16. }
Add Comment
Please, Sign In to add comment