31.01.2011, 13:39
pawn Code:
forward weps();
public weps()
{
new id;
new amo = GetPlayerAmmo(id);
new notallowed[4] = (35, 36, 37, 38); // symbol is assigned a value that is never used: "notallowed"
if(GetPlayerWeapon(id) == sizeof(notallowed) && amo >= 1 ) {
return SendClientMessage(id, 0xF97804FF, "ur wep is not allowed !!");
}
return 1;
}