28.11.2009, 16:16
Код:
public AntiHack() { new string[256]; for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && Spawned[i] == 1) { if(GetPlayerSpecialAction(i) == 2) { format(string,sizeof(string), "[SERVERGUARD] %s wurde gebannt, Grund: Jetpack", GetName(i)); SendClientMessageToAll(COLOR_LIGHTRED, string); AntiCheatLog(string); Ban(i); } } } return 1; } stock GetName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); return name; }