Check if attached?
#1

How can I check if a 3DText Label is attached to a player/vehicle or not?
Reply
#2

Create a variable. Change it's default value when the 3dtextlabel is attached.

Then check if the value is not the default value, etcetra.

Not sure if this is the easiest way, cause I am 99.9 % sure there is no function you can use to check if it is attached or not.
Reply
#3

Код:
public OnPlayerConnect(playerid)
{
    new Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return 1;
}
Tested Works 100%
Rep if i helps you
Reply
#4

Quote:
Originally Posted by BigBaws
Посмотреть сообщение
Код:
public OnPlayerConnect(playerid)
{
    new Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return 1;
}
Tested Works 100%
Rep if i helps you
if you are going to ask for rep you should actually read what poster wants
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)