[Ajuda]Comando
#2

pawn Код:
CMD:Reportar(playerid, params[])
{
    new id;
    new texto[128];
    new Str[128];
    new inome[MAX_PLAYER_NAME];
    new nome[MAX_PLAYER_NAME];
    if(sscanf(params,"us",id,texto)) return SendClientMessage(playerid,-1,"USE: /reportar [id] [motivo]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Player nгo conectado");
    GetPlayerName(id,inome,MAX_PLAYER_NAME);
    GetPlayerName(id,nome,MAX_PLAYER_NAME);
    SendClientMessage(playerid,-1,"Obrigado Por Reportar...");
    for(new i; i < MAX_PLAYERS; ++i)
    {
        if(PlayerDados[playerid][Admin] > 0)
        {
            format(Str, sizeof(Str),"AVISO: %s reportou %s motivo: %s",nome,inome,texto);
            SendClientMessage(i, -1,Str);
        }
    }
    return true;
}
Reply


Messages In This Thread
[Ajuda]Comando - by goku114 - 11.06.2012, 13:20
Re: [Ajuda]Comando - by Crueliz0n - 11.06.2012, 13:23
Re: [Ajuda]Comando - by Ades - 11.06.2012, 13:25
Re: [Ajuda]Comando - by goku114 - 11.06.2012, 13:25
Re: [Ajuda]Comando - by Schocc - 11.06.2012, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)