what do PlayerBadWeapons do ? how i use it ?
#3

Quote:
Originally Posted by Weirdosport
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:

pawn Код:
//Top of script
BadWeapons[] = {id, id, id}

//OnPlayerUpdate
for(new i=o; i<sizeof(BadWeapons); i++)
{
if(GetPlayerWeapon(playerid) == BadWeapons[i]) Kick(playerid);
}
thnx again )
Reply


Messages In This Thread
what do PlayerBadWeapons do ? how i use it ? - by Divine - 24.05.2009, 20:16
Re: what do PlayerBadWeapons do ? how i use it ? - by Weirdosport - 24.05.2009, 20:28
Re: what do PlayerBadWeapons do ? how i use it ? - by Divine - 24.05.2009, 20:30
Re: what do PlayerBadWeapons do ? how i use it ? - by Weirdosport - 24.05.2009, 20:37
Re: what do PlayerBadWeapons do ? how i use it ? - by Divine - 25.05.2009, 07:16

Forum Jump:


Users browsing this thread: 1 Guest(s)