Would these 3d text labels work in-game?
#8

Quote:
Originally Posted by stormchaser206
Посмотреть сообщение
Would that make it so that whenever someone takes damage, it goes down right then?
There would be a 1 second delay, so it would be hardly noticeable.

If that's all you need it for, you could simply look at updating it using this callback:

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

Which is called every time a player takes damage.

Also consider not creating the text-label constantly, create it once when the script starts or when the player joins the server and update it using this function:

https://sampwiki.blast.hk/wiki/Update3DTextLabelText

The key here is that you should be testing this yourself and reading the official PAWN documentation along with the SA-MP API documentation.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)