SA-MP Forums Archive
how to set 1 gun in hand only - 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)
+--- Thread: how to set 1 gun in hand only (/showthread.php?tid=575826)



how to set 1 gun in hand only - Barnwell - 30.05.2015

i want to set player only 1 gun in hand!


Re: how to set 1 gun in hand only - J0sh... - 30.05.2015

PHP код:
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL1); 



Re: how to set 1 gun in hand only - Barnwell - 30.05.2015

how to set 1 gun in hand only? example: if player have shotgun and buy another gun he can't! i want this


Re: how to set 1 gun in hand only - Konstantinos - 30.05.2015

The way you phrased it was kind of misleading.

Why don't you simply reset the weapons and give that 1 weapon you want a player can hold only?

pawn Код:
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, ...);



Re: how to set 1 gun in hand only - Barnwell - 09.06.2015

Where to put this?