toribio

toribio

Nov 12th, 2008
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. //no topo:
  2. forward AntiGodMode();
  3.  
  4. //no OnGameModeInit:
  5. SetTimer("AntiGodMode", 1000, 1);
  6.  
  7. //no fim do mode:
  8. public AntiGodMode()
  9. {
  10.     new Float:health;
  11.     for(new i; i < MAX_PLAYERS; i++)
  12.     {
  13.         GetPlayerHealth(i, health);
  14.         if(health > 100.0 && !IsPlayerAdmin(i))
  15.         {
  16.             new string[256];
  17.             GetPlayerName(i, string, sizeof string);
  18.             format(string, sizeof string, "[ANTI-CHEAT] %s foi automaticamente kickado, raz�o: GodMode", string);
  19.             SendClientMessageToAll(0xFF0000AA, string);
  20.         }
  21.     }
  22. }
Add Comment
Please, Sign In to add comment