19.08.2010, 23:51
pawn Код:
#if defined AntiWeap
public OnPlayerUpdate(playerid)
{
if(PlayerInfo[playerid][Level] >= 2 && IsPlayerAdmin(playerid))
{
return 1;
}
else if(GetPlayerInterior(playerid) == 1 && 4 && 6 && 7)
{
return 1;
} else if(GetPlayerInterior(playerid) == 0){
new weapon, ammo, str[128];
GetPlayerWeaponData(playerid, 7, weapon, ammo);
if(GetPlayerWeapon(playerid) == >= 1 && <= 39)
{
format(str, sizeof(str), "[FrosTiC AnTi]: %s (%d) has been Kicked by FrosTiC AnTi CheaT. (Reason: Weapon Hacks)",PlayerName(playerid),playerid);
format(strtofile, sizeof(strtofile), "%s (%d) has been Kicked by FrosTiC AnTi CheaT. (Reason: Weapon Hacks)",PlayerName(playerid),playerid);
SendClientMessageToAll(pink, str);
SaveToFile(AntiCheat, string);
Kick(playerid);
}
}
return 1;
}
#endif