SA-MP Forums Archive
Admin TextLabel 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: Admin TextLabel help (/showthread.php?tid=425581)



Admin TextLabel help - SilencedPistol - 26.03.2013

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.");
}



Re: Admin TextLabel help - FunnyBear - 26.03.2013

You can't see your own 3D label


Re: Admin TextLabel help - SilencedPistol - 26.03.2013

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.