SA-MP Forums Archive
3dtext - 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: 3dtext (/showthread.php?tid=445974)



3dtext - Saleem - 23.06.2013

i need help with player3dtext label i found this on wiki but i dont find how to change it to when player type /playerlabel
then it ask for costume text not only 'm at your position"

like this /playerlabel playertext
and also how to destroy this label ? please help


Код:
if(strcmp(cmd, "/playerlabel", true) == 0)
{
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);
    return 1;
}



Re: 3dtext - IstuntmanI - 23.06.2013

Use this:
https://sampwiki.blast.hk/wiki/UpdatePlayer3DTextLabelText


Re: 3dtext - Saleem - 24.06.2013

i don't get it how to make this commands please you set it ?


Re: 3dtext - JimmyCh - 24.06.2013

first add :
PHP код:
 new Text3Dplayertextid[MAX_PLAYERS
on the top of the script.

For the command, use this
PHP код:
if(strcmp(cmd"/playerlabel"true) == 0)
{
    
playertextidCreate3DTextLabel("Hello\nI'm at your position",0x008080FF30.040.050.040.00);
              
Attach3DTextLabelToPlayer(playertextid[playerid], playerid0.00.00.4);
return 
1;

To delete this, you'll need to add
PHP код:
Delete3DTextLabel(playeridplayertextid); 
rep me if i helped