13.10.2011, 23:56
Try this:
pawn Код:
forward WeaponBan();
public WeaponBan()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerWeapon(i) != 0))
{
new string[128], name[24];
GetPlayerName(i,name,24);
format(string,128,"%s (%d) Has Been Automatically Banned For Weapon Hacks.",name,i);
SendClientMessageToAll(-1,string);
print(string);
Ban(i);
}
}
}
return 1;
}