[AJUDA] Guardiгo
#2

Creio que assim funcione:
pawn Код:
if(!strcmp(cmdtext, "/guardioes", true))
{
    SendClientMessage(playerid,GREEN, "[»] .:: Guardioes Online ::. [»]");
    new count=0;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            format(file2, sizeof(file2), PASTA_CONTAS, pname);
            if(dini_Int(file, "Guardiao") == 1)
            {
                new str[30];
                new pname[MAX_PLAYER_NAME];
                GetPlayerName(i, pname, 35);
                format(str,sizeof(str),"%s (%d)", pname,i);
                SendClientMessage(playerid, COLOR_WHITE, str);
                count++;
            }
        }
    }
    if(count == 0)
    {
        SendClientMessage(playerid, Vermelho, "Nгo hб guardiхes online!");
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Guardiгo - by guilhermeghc@hotmail.com - 20.01.2012, 05:29
Re: [AJUDA] Guardiгo - by Hardware - 20.01.2012, 15:31
Re: [AJUDA] Guardiгo - by guilhermeghc@hotmail.com - 21.01.2012, 09:53
Re: [AJUDA] Guardiгo - by Shadoww5 - 21.01.2012, 11:22
Re: [AJUDA] Guardiгo - by guilhermeghc@hotmail.com - 21.01.2012, 11:44
Re: [AJUDA] Guardiгo - by Shadoww5 - 21.01.2012, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)