Voke_Bass

Anti-Cheat Unfreeze-Hack [UPDATED 2020-12-17]

Jun 24th, 2019 (edited)
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.76 KB | None | 0 0
  1. //Updated 2020-12-17 | Rewiews: 84
  2. //Created by Vok3 | more: https://pastebin.com/u/Voke_Bass
  3.  
  4. #define FREEZE_PLAYER       0
  5. #define UNFREEZE_PLAYER     1
  6.  
  7. new PlayerFreezed[MAX_PLAYERS];
  8.  
  9. public OnPlayerConnect(playerid)
  10. {
  11.     PlayerFreezed[playerid] = -1;
  12.     return 1;
  13. }
  14.  
  15. public OnPlayerUpdate(playerid)
  16. {
  17.     if(PlayerFreezed[playerid] == FREEZE_PLAYER) { AntiPlayerFreeze(playerid, FREEZE_PLAYER); }
  18.     return 1;
  19. }
  20.  
  21. stock AntiPlayerFreeze(playerid, controllable)
  22. {
  23.     TogglePlayerControllable(playerid, controllable);
  24.     PlayerFreezed[playerid] = controllable;
  25. }
  26.  
  27. CMD:freeze(playerid)
  28. {
  29.     AntiPlayerFreeze(playerid, FREEZE_PLAYER);
  30.     return 1;
  31. }
  32.  
  33. CMD:unfreeze(playerid)
  34. {
  35.     AntiPlayerFreeze(playerid, UNFREEZE_PLAYER);
  36.     return 1;
  37. }
Add Comment
Please, Sign In to add comment