Posts: 1,152
Threads: 11
Joined: Feb 2010
Reputation:
0
Ehm, weapons dissapear automaticly when they are empty (except when in vehicle)
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
Yeah they not dissapear, you just cant use them anymore
I dont know much about the function GetPlayerWeaponState but it looks like that it gets the state of your weapon holding and if you shot your last bullet you auto switch to another weapon and so you cant rly obtain this state
But actually why do you need that ?
Just update the ammo if they switch weapon which happens if you reach 0 ammo
Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
script will check it anyway, test it with `print` At onplayerupdate, onplayerkeystatechange etc. Of course it may not check for it if you use quite slow timer.
Posts: 516
Threads: 153
Joined: Sep 2009
Reputation:
0
any idea how it make works correctly