Label Help. - 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: Label Help. (
/showthread.php?tid=386749)
Label Help. -
Laure - 21.10.2012
I tried to make 3d Text Label command that works for admins but the label is not 3dTextLabel its normal.Heres the code.Would be thankful if anyone can help.
Код:
CMD:admintag(playerid,params[])
{
if (PlayerInfo[playerid][pAdmin] == 99999)
{
new string[128];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] == 99999)
format(string, sizeof(string), "{FF6347}XG-RP Administrtor\n{FFFFF}%s\n{0000BB}Server Owner", GetPlayerNameEx(playerid));
label[playerid] = Create3DTextLabel(string, COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
}
return 1;
}
Re : Label Help. -
yusei - 21.10.2012
Код:
CMD:admintag(playerid,params[])
{
if (PlayerInfo[playerid][pAdmin] == 99999)
{
new string[128];
if(IsPlayerConnected(playerid))
{
format(string, sizeof(string), "{FF6347}XG-RP Administrtor\n{FFFFF}%s\n{0000BB}Server Owner", GetPlayerNameEx(playerid));
label[playerid] = Create3DTextLabel(string, COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
GetPlayerVirtualWorld(playerid), 0);
}
}
return 1;
}
try
Re: Label Help. -
Laure - 21.10.2012
No didnt work
Re: Label Help. -
NewerthRoleplay - 21.10.2012
Do what it says here. Note how the text label is created(new Text3D:blah)