23.07.2015, 13:36
Hello!
Yes, you have to do the textdraws clickable.
https://sampwiki.blast.hk/wiki/TextDrawSetSelectable
(Player => https://sampwiki.blast.hk/wiki/PlayerTextDrawSetSelectable)
Well, you have to go in this callback:
https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw
(Player => https://sampwiki.blast.hk/wiki/OnPlayerClickPlayerTextDraw)
So. Now you have to check wheather you click on the right textdraw.
(Player =>
)
Well. Now you can give this player the health, armour, and so on.
- Mencent
Yes, you have to do the textdraws clickable.
https://sampwiki.blast.hk/wiki/TextDrawSetSelectable
(Player => https://sampwiki.blast.hk/wiki/PlayerTextDrawSetSelectable)
Well, you have to go in this callback:
https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw
(Player => https://sampwiki.blast.hk/wiki/OnPlayerClickPlayerTextDraw)
So. Now you have to check wheather you click on the right textdraw.
PHP код:
if(clickedid == TEXTDRAW_NAME)
PHP код:
if(playertextid == TEXTDRAW_NAME)
Well. Now you can give this player the health, armour, and so on.
- Mencent