SA-MP Forums Archive
Tag above head help - 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: Tag above head help (/showthread.php?tid=429745)



Tag above head help - MichaelWharton101 - 11.04.2013

Last bit of help, I want to know how to do this...

I want to be able to use a command like /tag and this will pop up above my head so other people see it. How would I do this? please help me.




Re: Tag above head help - Pawnie - 11.04.2013

Attach a 3d text

Attach3DTextLabelToPlayer


Edit: example

Код:
new Text3D:AdminLabel[MAX_PLAYERS];

//OnPlayerDisconnect
Update3DTextLabelText(AdminLabel[playerid], 0xFFFFFFFF, " ");

//OnPlayerSpawn
if(Spieler[playerid][AdminLevel] < 0)
{
    Update3DTextLabelText(AdminLabel[playerid], 0xFFFFFFFF, " ");
}
else if(Spieler[playerid][AdminLevel] > 1)
{
    Add3DTextLabelToAdmin(playerid);
}

//Anywhere
stock Add3DTextLabelToAdmin(playerid)
{
    AdminLabel[playerid] = Create3DTextLabel("{FF007F}A{FF0000}d{FF007F}m{FF0000}i{FF007F}n",0xF97804FF,30.0,40.0,50.0,30,-1,1);
    Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0.0, 0.0, 0.7);
}