[EXAMPLE/INC] Retrieving The Correct Amount of Ammo
#1

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.
Reply
#2

Do we use a timer for GetPlayerWeapons? What exactly is needed for the GetPlayerWeapons to be called?
Reply
#3

I tried so. But it returns incorrect quantity. try this
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)