Posts: 516
Threads: 153
Joined: Sep 2009
Reputation:
0
How count bullets that player shots?
Posts: 124
Threads: 4
Joined: Jul 2008
Reputation:
0
You will need to keep a close track on each player, so I guess the first step would be to decide how to do that. You could do it through a timer that constantly calls a function, or perhaps better through a callback like OnPlayerUpdate.
Within that function/callback, you will have to track the player's weapon information: weapons held, amount of ammo currently held for each weapon. If you keep track of these in global variables, you will be able to compare their current information with the information stored at the previous check to see if they differ. You can then store the results wherever you like, most likely into a global variable that is keeping track of the amount of bullets shot.
Posts: 516
Threads: 153
Joined: Sep 2009
Reputation:
0
When i take timer.... it not help... when i shot it not work...
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
I guess you using GetPlayerWeaponData cos its have a big bug with ammo
Use GetPlayerAmmo(playerid);