SA-MP Forums Archive
[FilterScript] Indicator HP/Armor TextDraw - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Indicator HP/Armor TextDraw (/showthread.php?tid=577550)



Indicator HP/Armor TextDraw - Ayzek - 12.06.2015

System Description: When shooting the player will be shown TextDraw his Health and armor.
because of problems with the function of getplaerhealtn had little subtilize system. Since the function returns the previous player and not the HP currently.
sorry for my English. Translated via ****** =)

Link: http://pastebin.com/Nsy38VXe
Screen: http://postimg.org/image/7nx4tnfc5/



Re: Indicator HP/Armor TextDraw - SpikY_ - 12.06.2015

its good. but it will annoy?


Re: Indicator HP/Armor TextDraw - Ayzek - 12.06.2015

Quote:
Originally Posted by NGEN123
Посмотреть сообщение
its good. but it will annoy?
I do not know, but my players are not annoying =)


Re: Indicator HP/Armor TextDraw - SNAKE12 - 12.06.2015

nice !!


Re: Indicator HP/Armor TextDraw - Ayzek - 12.06.2015

Quote:
Originally Posted by SNAKE12
Посмотреть сообщение
nice !!
thanks


Re: Indicator HP/Armor TextDraw - UltraScripter - 12.06.2015

nice


Re: Indicator HP/Armor TextDraw - Jakwob - 12.06.2015

Nice +rep


Re: Indicator HP/Armor TextDraw - Pottus - 12.06.2015

This has some issues for sure.

1.) The display time could be any random length of 1 second or less because of your updating method.
2.) Related to the first point you do not need to keep looping through all the players just set a timer for 1 second each time (make sure you KillTimer() first if any happen to be running!)
3.) You are using OnPlayerGiveDamage() there is no guarantee of damage using this callback unless you have a system specifically designed to utilize this callback. (Weapon-config https://sampforum.blast.hk/showthread.php?tid=563387)
4.) OnGameModeInit() instead of OnFilterScriptInit()
5.) Does not delete textdraws/no OnFilterScriptExit()

So currently, this script is not usable I think there is just too many issues.


Re: Indicator HP/Armor TextDraw - Ayzek - 12.06.2015

Quote:
Originally Posted by Jakwob
Посмотреть сообщение
Nice +rep
thanks you very much


Re: Indicator HP/Armor TextDraw - Ayzek - 12.06.2015

Quote:
Originally Posted by Pottus
Посмотреть сообщение
This has some issues for sure.

1.) The display time could be any random length of 1 second or less because of your updating method.
2.) Related to the first point you do not need to keep looping through all the players just set a timer for 1 second each time (make sure you KillTimer() first if any happen to be running!)
3.) You are using OnPlayerGiveDamage() there is no guarantee of damage using this callback unless you have a system specifically designed to utilize this callback. (Weapon-config https://sampforum.blast.hk/showthread.php?tid=563387)
4.) OnGameModeInit() instead of OnFilterScriptInit()
5.) Does not delete textdraws/no OnFilterScriptExit()

So currently, this script is not usable I think there is just too many issues.
It is not ready to FS. I just showed that where to insert. The system is fully operating did not notice any bugs.
and yes, I forgot to add the removal Textdraw. Now I fix and change the link.
Sorry for my bad English. Translated via ******