Making a 3D Text above a player's head? - 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: Making a 3D Text above a player's head? (
/showthread.php?tid=318335)
Making a 3D Text above a player's head? -
Guitar - 14.02.2012
Hello,
How can I make such a paytime system?
MAIN QUESTION is: How can I put (( Just Spawned )) textdraw above the players on their connect to the server and keep it for like 10 seconds, then it disappears ?
Re: Making a 3D Text above a player's head? -
TheGamer! - 14.02.2012
Try and analyze this. I didn't tested it.
pawn Code:
new Text3D:Text[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
Text[playerid]=Create3DTextLabel("Text", COLOR, 0, 0, 0, 0, 0, 0);
Attach3DTextLabelToPlayer(Text[playerid], playerid, 0, 0, 2);
SetTimerEx("DelText", 10*1000, false, "d", playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(Text[playerid]);
return 1;
}
forward DelText(playerid); public DelText(playerid)
{
Delete3DTextLabel(Text[playerid]);
return 1;
}