[EXAMPLE/INC] Retrieving The Correct Amount of Ammo - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [EXAMPLE/INC] Retrieving The Correct Amount of Ammo (
/showthread.php?tid=65261)
[EXAMPLE/INC] Retrieving The Correct Amount of Ammo -
90NINE - 11.02.2009
This small example script / include is pretty self explanatory. It\'s just another method of getting a player\'s weapon info. Very rarely does it return the wrong ammo.
Link:
http://pastebin.com/f5b683d09
Comments are appreciated.
Re: [EXAMPLE/INC] Retrieving The Correct Amount of Ammo -
Chaprnks - 11.02.2009
Do we use a timer for GetPlayerWeapons? What exactly is needed for the GetPlayerWeapons to be called?
Re: [EXAMPLE/INC] Retrieving The Correct Amount of Ammo -
drV - 11.02.2009
I tried so. But it returns incorrect quantity. try
this
Re: [EXAMPLE/INC] Retrieving The Correct Amount of Ammo -
90NINE - 11.02.2009
Quote:
Originally Posted by ǝɹoɯ‾ʎ
Do we use a timer for GetPlayerWeapons? What exactly is needed for the GetPlayerWeapons to be called?
|
Here is an example of how I use it in my sync filterscript.
http://pastebin.com/m43b6b146
Basically what we\'re doing in the sync filterscript is saving the player\'s weapons, respawning them, and then giving them their weapons back.
Its main use is to obviously sync you for other players but its also useful for getting sprint back.