[Ajuda] Label Nгo carrega
#8

Quote:
Originally Posted by BlackDonelly
Посмотреть сообщение
tente dessa forma:

pawn Код:
public OnPlayerConnect(playerid)
{
    pInfo[p][LabelAdmin] = Create3DTextLabel(sGlobal, COR_LARANJA2, 0.0, 0.0, 0.0, 15.0, 0, 1);
    Attach3DTextLabelToPlayer(pInfo[p][LabelAdmin], playerid, 0.0, 0.0, 0.5);
    return 1;
}  

public OnPlayerDisconnect(playerid)
{
    Delete3DTextLabel(pInfo[playerid][LabelAdmin]);
    return 1;
   
}

FC:CheckLabels()
{
    for (new p = 0; p < GetMaxPlayers(); p++)
    {
        if(pInfo[p][dAfk] == false)
        {
            if(IsPlayerConnected(p))
            {
                switch(pInfo[p][dLAdmin])
                {
                    case 0:
                    {
                        format(sGlobal,sizeof sGlobal,"%s",gProfName(p));
                        Update3DTextLabelText(pInfo[p][LabelAdmin],0x37FF00FF,sGlobal);
                    }
                    case 1:
                    {
                        Update3DTextLabelText(pInfo[p][LabelAdmin],0x37FF00FF,"* Moderador *");
                    }
                    case 2:
                    {
                        Update3DTextLabelText(pInfo[p][LabelAdmin],0x37FF00FF,"* Adminstrador *");
                    }
                }
            }  
        }
        if(pInfo[p][dAfk] == true)
        {
            Update3DTextLabelText(pInfo[p][LabelAdmin],0x37FF00FF,"* Jogador AFK *");
        }
    }
    return 1;
}
Thanks Man.

+rep for all
Reply


Messages In This Thread
Label Nгo carrega - by dPlaYer_ - 24.03.2013, 02:26
Re: Label Nгo carrega - by Maklister - 24.03.2013, 02:34
Re: Label Nгo carrega - by Crueliz0n - 24.03.2013, 03:11
Re: Label Nгo carrega - by Maklister - 24.03.2013, 04:43
Re: Label Nгo carrega - by Dwayne-Pheonix - 24.03.2013, 12:20
Re: Label Nгo carrega - by dPlaYer_ - 24.03.2013, 22:48
Re: Label Nгo carrega - by Crueliz0n - 24.03.2013, 23:06
Re: Label Nгo carrega - by dPlaYer_ - 25.03.2013, 00:27

Forum Jump:


Users browsing this thread: 1 Guest(s)