Createplayer3dlable not show - 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: Createplayer3dlable not show (
/showthread.php?tid=530913)
Createplayer3dlable not show -
Venice - 09.08.2014
This not show 3dlable
pawn Код:
CMD:vipon(playerid,params[])
{
if(PlayerInfo[playerid][dRank] >=2)
{
if(PlayerInfo[playerid][Tag] == 0)
{
vtext = CreatePlayer3DTextLabel(playerid,"Yes\nI'm VIP",0xFFFF00FF,40.0,0,0,0);
SendClientMessage(playerid,green,"VIP Text Turned on");
SendClientMessage(playerid,yellow,"[VIP]: You can change your Custom Text using /viptext");
}
else
{
new string3[250];
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
format(string3,sizeof(string3),"%s", PlayerInfo[playerid][Tag]);
vtext = CreatePlayer3DTextLabel(playerid, string3, 0xFFFF00FF, Float:X, Float:Y, Float:Z, 40.0);
SendClientMessage(playerid,green,"VIP Text Turned on");
SendClientMessage(playerid,yellow,"[VIP]: You can change your Custom Text using /viptext");
}
new string1[128];
new pName1[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName1, sizeof(pName1));
format(string1, sizeof(string1), "{FFFF00}[VIP]: {00D0FF}%s {FFFFFF}has used {00D0FF}/vipon", pName1);
SendClientMessageToAll(0xFF0000FF, string1);
}
else
{
SendClientMessage(playerid,red,"You are not {FFFF00}VIP");
}
return 1;
}
Re: Createplayer3dlable not show -
David (Sabljak) - 09.08.2014
Use Create3D + Attach
Re: Createplayer3dlable not show -
Venice - 09.08.2014
Quote:
Originally Posted by David (Sabljak)
Use Create3D + Attach
|
ok if i use it how i delete it when player disconnect ?
Re: Createplayer3dlable not show -
Faisal_khan - 09.08.2014
The syntax is wrong:
pawn Код:
(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS)
You are creating the label at X=40, Y=0 and Z=0.
Here's how you gotta do it:
pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePlayer3DTextLabel(playerid,"Yes\nI'm VIP",0xFFFF00FF,X,Y,Z,40.0,playerid,INVALID_VEHICLE_ID,0);
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Re: Createplayer3dlable not show -
Venice - 09.08.2014
@Faisalkhan Still its not working