SA-MP Forums Archive
help !! - 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: help !! (/showthread.php?tid=585414)



help !! - Karolukas123 - 13.08.2015

Hey, can resetwapone from player but not all guns. I need if player have 5 gun and i need from what gun (gun id:6) resset what gun.


Re: help !! - Keyhead - 13.08.2015

You want to check what guns a player has and return the ID's? Sorry you're not being very clear.


Re: help !! - Karolukas123 - 14.08.2015

i need if player have gun (id:6), i need reset what gun not all guns


Re: help !! - ThePhenix - 14.08.2015

If you want to reset only one weapon then you can use:

PHP код:
SetPlayerAmmo 
And set the ammo to 0.

PHP код:
if(GetPlayerWeapon(playerid) == 6)
{
    
SetPlayerAmmo(playerid60);




Re: help !! - Karolukas123 - 14.08.2015

Thanks ThePhenix