26.03.2013, 13:35
Sometimes when people connect to server.weapon hack kicks them(kicks innocent people).
Quote:
OnGamemodeinit |
Quote:
SetTimer("WeaponHack", 1000, 1); |
Quote:
forward WeaponHack(playerid); public WeaponHack(playerid) { for(new i; i < MAX_PLAYERS; i++) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(i, sendername, sizeof(sendername)); new string[256]; if(GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 37 || GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 17) { format(string, sizeof(string), "%s a primit Kick de la BOT, Motiv: Weapon Hack",sendername); SendClientMessageToAll(COLOR_RED, string); Kick(i); return 1; } } return 1; } |