VIP Tag not showing up.
#1

So I've scripted in a command, where a vip member can do /vtag to activate/deactivate his tag. But for some reason the textlabel isn't showing up on the player.

pawn Код:
CMD:vtag(playerid, params[])
{
    if(PlayerInfo[playerid][pVip] >=1 )
    {
        new Text3D:label = Create3DTextLabel("VIP", COLOR_VIOLET, 30.0, 40.0, 50.0, 40.0, 0);
        if(viptag[playerid] == 0 )
        {
            GameTextForPlayer(playerid, "~p~VIP Tag Activated.",3000,5);
            viptag[playerid] = 1;
            Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
        }
        else
        {
            GameTextForPlayer(playerid, "~r~VIP Tag Deactivated",3000,5);
            viptag[playerid] = 0;
            DeletePlayer3DTextLabel(playerid, PlayerText3D:label);
        }
    }
    else return SendClientMessage(playerid,COLOR_GREY, ERROR);
    return 1;
}
Maybe you guys will know whats wrong, thanks.
Reply


Messages In This Thread
VIP Tag not showing up. - by rangerxxll - 12.03.2013, 01:58
Re: VIP Tag not showing up. - by SwisherSweet - 12.03.2013, 02:01
Re: VIP Tag not showing up. - by rangerxxll - 12.03.2013, 02:02
Re: VIP Tag not showing up. - by [CG]Milito - 12.03.2013, 02:25
Re: VIP Tag not showing up. - by Jefff - 12.03.2013, 02:25
Re: VIP Tag not showing up. - by greentarch - 12.03.2013, 02:27
Re: VIP Tag not showing up. - by rangerxxll - 12.03.2013, 02:34
Re: VIP Tag not showing up. - by Jefff - 12.03.2013, 02:44
Re: VIP Tag not showing up. - by Jewell - 12.03.2013, 03:16

Forum Jump:


Users browsing this thread: 2 Guest(s)