what's wrong?
#3

Just:

pawn Код:
if(IsPlayerAdmin(playerid))
{
    admin[playerid] = Create3DTextLabel("Owner[Admin Level 5]", COLOUR_GREEN, 30.0,40.0,50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
}
else
{
    switch (PlayerInfo[playerid][AdminLevel])
    {
        case 1:
        {
            admin[playerid] = Create3DTextLabel("Admin Level 1", COLOUR_RED, 30.0,40.0,50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
        }
        case 2:
        {
            admin[playerid] = Create3DTextLabel("Admin Level 2", COLOUR_GREEN, 30.0,40.0,50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
        }
        case 3:
        {
            admin[playerid] = Create3DTextLabel("Admin Level 3", COLOUR_GREEN, 30.0,40.0,50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
        }
        case 4:
        {
            admin[playerid] = Create3DTextLabel("Admin Level 4", COLOUR_GREEN, 30.0,40.0,50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
        }
        case 5:
        {
            admin[playerid] = Create3DTextLabel("Main Admin[Admin Level 5]", COLOUR_GREEN, 30.0,40.0,50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.7);
        }
    }
}
at OnPlayerSpawn.
Reply


Messages In This Thread
what's wrong? - by omer5198 - 11.08.2011, 17:23
Re: what's wrong? - by JaTochNietDan - 11.08.2011, 17:26
Re: what's wrong? - by Jeffry - 11.08.2011, 17:29

Forum Jump:


Users browsing this thread: 3 Guest(s)