SA-MP Forums Archive
Do not lose the gun with no munition - 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: Do not lose the gun with no munition (/showthread.php?tid=458416)



Do not lose the gun with no munition - JacobWilkerson - 16.08.2013

Hi everyone.

So, now when you have a weapon and that takes all the balls from the charger, it goes away.

I wonder if there is a way, even if you have 0 bullets in the charger to keep the gun in hand.

Bye!


Re: Do not lose the gun with no munition - Vanter - 16.08.2013

Donnot think so, it's client sided


Re: Do not lose the gun with no munition - JacobWilkerson - 16.08.2013

I saw a video some time ago from someone who had done this kind of thing.


Re: Do not lose the gun with no munition - JacobWilkerson - 17.08.2013

UP please!!


Re : Do not lose the gun with no munition - Matnix - 17.08.2013

I don't see how you could to this - I simply suggest you to use some toys editor to do it (only for getting) your object pos. So you could attach this object to a players (in his hand). Only when his weapon set is 0 only.


Re: Do not lose the gun with no munition - JacobWilkerson - 17.08.2013

How do you check if the player has 0 bullets in the guN?


Re: Do not lose the gun with no munition - [ABK]Antonio - 17.08.2013

Quote:
Originally Posted by JacobWilkerson
Посмотреть сообщение
How do you check if the player has 0 bullets in the guN?
Store if they had it at one point. If they don't, then they have 0 ammo.


Re: Do not lose the gun with no munition - JacobWilkerson - 18.08.2013

Up please, can you help me


Re: Do not lose the gun with no munition - Edix - 18.08.2013

You can make it so when the player has 1 bullet left he wont be able to shoot it.