SA-MP Forums Archive
about weapon shoot - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: about weapon shoot (/showthread.php?tid=654079)



about weapon shoot - RedGun2015 - 20.05.2018

Hello, I want to know, how can I make a script that show me, how much damage I did in 1 second, using GetTickCount() and OnPlayerGiveDamage.

Can anyone give me an advice or example?


Re: about weapon shoot - TadePoleMG - 20.05.2018

Hi

Use this - https://pastebin.com/rvH3cQzt

And make it with you function and it is very easy.


Re: about weapon shoot - RedGun2015 - 20.05.2018

Yes, but I want to use GetTickCount to calculate the damage in 1 second, and i don't really knwo how can I do that.


Re: about weapon shoot - Awide - 20.05.2018

Quote:
Originally Posted by RedGun2015
Посмотреть сообщение
Yes, but I want to use GetTickCount to calculate the damage in 1 second, and i don't really knwo how can I do that.
Why don't you use a timer?


Re: about weapon shoot - RedGun2015 - 20.05.2018

Quote:
Originally Posted by Awide
Посмотреть сообщение
Why don't you use a timer?
because it is not accurate.