Attach 3D text 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: Attach 3D text to a player? (
/showthread.php?tid=286657)
Attach 3D text to a player? -
ServerScripter - 29.09.2011
Hi , i Create RP Server, so i want if a Normal Player connect inGame , Attach a 3D text to Him (in the top of his name) with the Text "Normal Player" (for Teste) Can you Help me?
Thanks.
Re: Attach 3D text to a player? -
ServerScripter - 29.09.2011
Can You tell me if it Shoulds work ?
PHP код:
public OnPlayerConnect(playerid)
{
if(PlayerInfo[playerid][pLevel] == 1)
{
label[playerid] = Create3DTextLabel("New Player[Lvl 1]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
else if(PlayerInfo[playerid][pLevel] == 2)
{
label[playerid] = Create3DTextLabel("New Player[Lvl 2]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}