[Pedido] Mostrar que o admin estб afk
#4

Quote:
Originally Posted by Twizted
Посмотреть сообщение
Nгo testei.

pawn Код:
new bool:ADMIN_AFK[MAX_PLAYERS],
    STRING_1[129],
    STRING_2[129],
    NOME[24];

    GetPlayerName(playerid, NOME, sizeof(NOME));

OnPlayerPause:
    ADMIN_AFK[playerid] = true;

/admins:
    foreach (new i : Player)
    {
        if(IsPlayerAdmin(playerid)) //troque por sua variбvel
        {
            if(ADMIN_AFK[i])
            {
                format(STRING_1, sizeof(STRING_1) "%s [Inativo ESC]", NOME);
                SendClientMessage(playerid, -1, "STRING_1");
            }
            else
            {
                format(STRING_2, sizeof(STRING_2), "$s", NOME);
                SendClientMessage(playerid, -1, "STRING_2");
            }
        }
    }
Callback OnPlayerPause Nao e nativa do SA-MP tens de declarar de que include a usas para ele saber.

quanto a isto:

pawn Код:
format(STRING_1, sizeof(STRING_1) "%s [Inativo ESC]", NOME);
SendClientMessage(playerid, -1, "STRING_1");
tens a nocao do que fizeste?
Reply


Messages In This Thread
Mostrar que o admin estб afk - by zqkRazer - 27.08.2014, 12:09
Re: Mostrar que o admin estб afk - by Twizted - 27.08.2014, 13:56
Re: Mostrar que o admin estб afk - by FallweN - 27.08.2014, 15:38
Re: Mostrar que o admin estб afk - by PT - 27.08.2014, 21:04
Re: Mostrar que o admin estб afk - by Twizted - 27.08.2014, 21:35

Forum Jump:


Users browsing this thread: 3 Guest(s)