Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //no topo:
- forward AntiGodMode();
- //no OnGameModeInit:
- SetTimer("AntiGodMode", 1000, 1);
- //no fim do mode:
- public AntiGodMode()
- {
- new Float:health;
- for(new i; i < MAX_PLAYERS; i++)
- {
- GetPlayerHealth(i, health);
- if(health > 100.0 && !IsPlayerAdmin(i))
- {
- new string[256];
- GetPlayerName(i, string, sizeof string);
- format(string, sizeof string, "[ANTI-CHEAT] %s foi automaticamente kickado, raz�o: GodMode", string);
- SendClientMessageToAll(0xFF0000AA, string);
- }
- }
- }
Add Comment
Please, Sign In to add comment