How to attach a label to a player - 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: How to attach a label to a player (
/showthread.php?tid=641741)
How to attach a label to a player -
OGMurda - 19.09.2017
I WANT TO ATTACH THIS TO THE PLAYER SO WHEN HE DIES AND GETS TP'D IT DOSNT BUG AND STAY THERE.
Код:
PlayerInfo[playerid][pInjuriesText] = CreateDynamic3DTextLabel("(( THIS PLAYER IS DEAD. ))", COLOR_ERROR, x, y, z, 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 20.0);
Re: How to attach a label to a player -
Zedder - 19.09.2017
You mean the 3dtext label will stay there even after the player's death?
You can set a timer for destroying the text after the player's death.
Re: How to attach a label to a player -
kAn3 - 20.09.2017
Under OnPlayerDeath take playerid's x y and z coordinates and create it there.