02.09.2009, 18:45
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(GetPlayerWeapon(playerid)==any_forbidden_gun)
{
SendClientMessage(playerid,color,"This weapon is forbidden!");
// Look for a function called "RemovePlayerWeapon(playerid,weaponid) and remove this weaponid.
}
return 1;
}