SA-MP Forums Archive
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]"0x008080FF30.040.050.040.00);
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.7);
}
else if(
PlayerInfo[playerid][pLevel] == 2)
{
label[playerid] = Create3DTextLabel("New Player[Lvl 2]"0x008080FF30.040.050.040.00);
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.7);