[Ajuda]comandos
#6

Se isso estiver dentro de um comando, vocк pode usar assim :

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if (GetPlayerLevel(i) >= 2 && playerid != i) // o jogador que digitou o comando nгo receberб a mensagem.
    {
        GetPlayerName(i, NomePlayer, sizeof(NomePlayer));
        format(string,sizeof(string),"(%d/%d/%d)[%d:%d:%d] [INFO-ADMIN] El Admin %s resetу todos los autos.",ano,mes,dia,hora,minuto,segundo,NomePlayer);
        SendClientMessage(i, COLOR_IADMIN, string);
    }
}

No caso do report, supondo que o jogador que reportou seja playerid, e o que foi reportado seja id2 :

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if (GetPlayerLevel(i) >= 2 && i != id2) // o jogador que foi reportado nгo receberб a mensagem
    {
        GetPlayerName(playerid, NomePlayer, sizeof(NomePlayer));
        GetPlayerName(id2, NomePlayer2, sizeof(NomePlayer2));
        format(string,sizeof(string),"(%d/%d/%d)[%d:%d:%d] [INFO-ADMIN] O Admin %s foi reportado por %s",ano,mes,dia,hora,minuto,segundo,NomePlayer2,NomePlayer);
        SendClientMessage(i, COLOR_IADMIN, string);
    }
}
Reply


Messages In This Thread
[Ajuda]comandos - by Skoll - 21.08.2011, 21:12
Re: [Ajuda]comandos - by ViniBorn - 21.08.2011, 21:28
Re: [Ajuda]comandos - by Skoll - 21.08.2011, 21:33
Re: [Ajuda]comandos - by ViniBorn - 21.08.2011, 21:34
Re: [Ajuda]comandos - by Skoll - 21.08.2011, 21:42
Re: [Ajuda]comandos - by ViniBorn - 21.08.2011, 21:58
Re: [Ajuda]comandos - by Skoll - 21.08.2011, 22:03
Re: [Ajuda]comandos - by Skoll - 21.08.2011, 22:31
Re: [Ajuda]comandos - by ViniBorn - 21.08.2011, 23:20
Re: [Ajuda]comandos - by Skoll - 22.08.2011, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)