10.08.2011, 15:22
Better way:
pawn Код:
#include "a_samp"
new BadWeapons[3] =
{
38, 36, 39
};
forward BadCheck();
public BadCheck()
{
new weapon[13], ammo, string[128];
for(new i = 0; i < GetMaxPlayers(); i++)if(IsPlayerConnected(i))
{
for(new w = 0; w < 13; w++)
{
GetPlayerWeaponData(i, w, weapon[w], ammo);
for(new b = 0; b < sizeof(BadWeapons); b++)
{
if(BadWeapons[b] == weapon[w])
{
format(string,sizeof(string),"[ Kick ]%s Kicked For %s.", pname, weap);
MessageToAdmins(white,string);
ResetPlayerWeapons(i);
Kick(i);
}
}
}
}
return true;
}