15.01.2015, 14:15
(
Последний раз редактировалось PaulDinam; 19.01.2015 в 10:00.
Причина: New pastebin link. Thanks to Threshold!
)
Weapon damage counter
A lot of people have been asking me to post this, so here it is. It is very simple and you can add a lot more features, such as detecting whether the bullet penetrated a player's vest and then display it on /damages.
You can easily implement it on your gamemode with better enhancements but that's just how I think it should look like.
There's one bug which is when a player dies and the damage resets, his "falls" damages increment by 1 due to a samp bug. If you want you to fix that, simply declare that the player has died under the function and when he spawns reset his damages.
http://pastebin.com/j12D1PwP
Video:
https://www.youtube.com/watch?v=5RF-Nxph8f8
You must have ZCMD and SSCANF, otherwise you can change the command structure at your own discretion.
You can easily implement it on your gamemode with better enhancements but that's just how I think it should look like.
There's one bug which is when a player dies and the damage resets, his "falls" damages increment by 1 due to a samp bug. If you want you to fix that, simply declare that the player has died under the function and when he spawns reset his damages.
Links
Link for pastebin:http://pastebin.com/j12D1PwP
Video:
https://www.youtube.com/watch?v=5RF-Nxph8f8
You must have ZCMD and SSCANF, otherwise you can change the command structure at your own discretion.