Check if attached? - 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: Check if attached? (
/showthread.php?tid=368671)
Check if attached? -
Makaveli93 - 14.08.2012
How can I check if a 3DText Label is attached to a player/vehicle or not?
Re: Check if attached? -
Kindred - 14.08.2012
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.
Re : Check if attached? -
BigBaws - 14.08.2012
Код:
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
Re: Re : Check if attached? -
SEnergy - 14.08.2012
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