[AJUDA] Comando /guardioes
#6

pawn Код:
if(!strcmp(cmdtext, "/guardioes", true))
{
    SendClientMessage(playerid,0x0080C0AA, "» Guardioes Online:");

    static
        iGuardas = 0;
        sString[128];
       
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!Guardiao[i] || !IsPlayerConnected(i)) continue;

        iGuardas++;
        {
            GetPlayerName(i, sString, MAX_PLAYER_NAME);
            format(sString, 128, "%s (%d)", sString, i);
            SendClientMessage(playerid, 0xFFFFFFAA, sString);
        }
    }

    if(!iGuardas) SendClientMessage(playerid, -1, "Nгo hб nenhum guardiгo online.");       
    return true;
}
Reply


Messages In This Thread
[AJUDA] Comando /guardioes - by Rodrigo. - 20.06.2011, 20:51
Re: [AJUDA] Comando /guardioes - by Shadoww5 - 20.06.2011, 22:13
Re: [AJUDA] Comando /guardioes - by Rodrigo. - 20.06.2011, 23:59
Re: [AJUDA] Comando /guardioes - by mengueh - 21.06.2011, 00:05
Re: [AJUDA] Comando /guardioes - by Rodrigo. - 21.06.2011, 00:19
Respuesta: [AJUDA] Comando /guardioes - by ScripterTroll - 21.06.2011, 00:37

Forum Jump:


Users browsing this thread: 1 Guest(s)