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 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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)