Createplayer3dlable not show
#1

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;
}
Reply
#2

Use Create3D + Attach
Reply
#3

Quote:
Originally Posted by David (Sabljak)
Посмотреть сообщение
Use Create3D + Attach
ok if i use it how i delete it when player disconnect ?
Reply
#4

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

@Faisalkhan Still its not working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)