[FilterScript] Indicator HP/Armor TextDraw
#1

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/
Reply
#2

its good. but it will annoy?
Reply
#3

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

nice !!
Reply
#5

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

nice
Reply
#7

Nice +rep
Reply
#8

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.
Reply
#9

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

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 ******
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)