24.05.2009, 20:28
It looks like a custom function to me, there's a similar one available that's built in:
https://sampwiki.blast.hk/wiki/SetDisabledWeapons
That means that if somebody spawns a minigun it wont hurt anybody and everybody else will see him using fists.
For the script you mention, you may aswell use:
https://sampwiki.blast.hk/wiki/SetDisabledWeapons
That means that if somebody spawns a minigun it wont hurt anybody and everybody else will see him using fists.
For the script you mention, you may aswell use:
pawn Код:
//Top of script
BadWeapons[] = {id, id, id};
//OnPlayerUpdate
for(new i=o; i<sizeof(BadWeapons); i++)
{
if(GetPlayerWeapon(playerid) == BadWeapons[i]) Kick(playerid);
}