Create3DTextLabel help
#3

For only admins to use it:

pawn Code:
CMD:createlabel(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1338) //change "1338" to the selected admin level
    {
        new
            str[128],
            Float:Pos[3]
        ;

        if (sscanf(params, "s[128]", str))
            return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createlabel <Label Text>");

        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        Create3DTextLabel(str, COLOR_WHITE, Pos[0], Pos[1], Pos[2], 40.0, 0, 0);
        return 1;
    }
    else return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    return 1;
}
Reply


Messages In This Thread
Create3DTextLabel help - by [DX]Aru12345 - 10.05.2013, 14:20
Re: Create3DTextLabel help - by [DOG]irinel1996 - 10.05.2013, 14:23
Re: Create3DTextLabel help - by ryanhawk31 - 10.05.2013, 14:33
Re: Create3DTextLabel help - by [DX]Aru12345 - 10.05.2013, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)