Whats wrong.
#1

Hello guys.I tried to make /mask command but the command dont work,nothing happens.Here is my code

pawn Код:
if(strcmp(cmd, "/maskon", true) == 0)
    {
        for(new i = 0; i < PLAYERS; i++)
        {
        ShowPlayerNameTagForPlayer(i, playerid, 0);
        new sendername[MAX_PLAYER_NAME];
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid,x,y,z);
        Mask[playerid] = Create3DTextLabel(sendername,COLOR_WHITE,x,y,z+2,20,0,0);
        Attach3DTextLabelToPlayer(Mask[playerid],playerid,0.0,0.0,0.0);
        }
        return 1;
    }
Reply
#2

did u add the New3DTextLabel:Mask[MAX_PLAYERS];

at the top of ur script?
Reply
#3

Yes I added this code
Reply
#4

change the second last 0 to 40

not the last but the second last
Mask[playerid] = Create3DTextLabel(sendername,COLOR_WHITE,x,y,z+2,2 0,40,0);
Attach3DTextLabelToPlayer(Mask[playerid],playerid,0.0,0.0,0.4);
Reply
#5

Doesn't work :X
Reply
#6

pawn Код:
if(strcmp(cmd, "/maskon", true) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 0);
        }
        new sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid,sendername,sizeof(sendername));
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid,x,y,z);
        Mask[playerid] = Create3DTextLabel(sendername,COLOR_WHITE,x,y,z+2,20,0,0);
        Attach3DTextLabelToPlayer(Mask[playerid],playerid,0.0,0.0,0.0);
        return 1;
    }
Reply
#7

Doesn't work :X
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)