SA-MP Forums Archive
Help needed ... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help needed ... (/showthread.php?tid=179363)



Help needed ... - martynas - 26.09.2010

Hi,


How to denied players to use some weapons


Thanks in advance


Re: Help needed ... - Ash. - 26.09.2010

pawn Код:
if(GetPlayerWeapon(playerid) == YOUR_DENIED_WEAPON) return Kick(playerid);



Re: Help needed ... - martynas - 27.09.2010

thanks man, but in what section i need to copy this
OnPlayerSpawn? Or somewhere else ? becouse i want that if player choose night vision it would be kicked with reason...


Re: Help needed ... - Retardedwolf - 27.09.2010

Quote:
Originally Posted by martynas
Посмотреть сообщение
thanks man, but in what section i need to copy this
OnPlayerSpawn? Or somewhere else ? becouse i want that if player choose night vision it would be kicked with reason...
OnPlayerKeyStateChange Might be a good one but it won't be as accurate as OnPlayerUpdate.