Admin TextLabel help
#1

Okay, so I've got an /adutyon command: when I type it I want a 3D Text Label to appear directly above the players head, but when I type it in game it does nothing.

Can you take a look and give me a hand with it? Thanks!

pawn Код:
CMD:adutyon(playerid,params[])
{ //This will open the command
    if(PlayerInfo[playerid][pAdminLevel] >=1)
    {
        new Text3D:label = Create3DTextLabel("ADMINISTRATOR IS ON DUTY!", COLOR_GREEN, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
        SendClientMessage(playerid,COLOR_GREEN,"[INFO] You are now on administrator duty.");
        SetPlayerHealth(playerid,99999);
        SetPlayerArmour(playerid,99999);
        SetPlayerColor(playerid, COLOR_GREEN);
        return 1;
        }
        else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
}
Reply
#2

You can't see your own 3D label
Reply
#3

Oh. Maybe that's why it's not showing for me then! Haha.

I'll test it later and hopefully it works. Thank's for that, I feel like an idiot now, haha.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)