3dtext
#1

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;
}
Reply
#2

Use this:
https://sampwiki.blast.hk/wiki/UpdatePlayer3DTextLabelText
Reply
#3

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

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

For the command, use this
PHP код:
if(strcmp(cmd, "/playerlabel", true) == 0)
{
    
playertextid= Create3DTextLabel("Hello\nI'm at your position",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
              
Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.4);
return 
1;
} 
To delete this, you'll need to add
PHP код:
Delete3DTextLabel(playerid, playertextid); 
rep me if i helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)