[AJUDA] Criando gangzones
#9

pawn Код:
if(strcmp(cmdtext, "/report", true) == 0 || strcmp(cmdtext, "/reportar", true) == 0)
{
    new tmp[256];
    tmp = strtok(cmdtext, idx);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(sendername));
        if(!strlen(tmp))
            {
            SendClientMessage(playerid,0x00A100AA,">>Use: /report [ID] [Motivo]");
            return 1;
            }
            giveplayerid = strval(tmp);
        if(IsPlayerConnected(giveplayerid))
            {
    new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' ')) {
            idx++;
            }
    new offset = idx;
    new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
            result[idx - offset] = cmdtext[idx];
            idx++;
            }
            result[idx - offset] = EOS;
        if(!strlen(result))
            {
            SendClientMessage(playerid,0xF60000AA,">>/report [ID] [Motivo]");
            return 1;
            }
            GetPlayerName(giveplayerid, giveplayer, sizeof(sendername));
            format(string,sizeof(string),">>>>>REPORT DE : %s (id %d) Reportou %s (id %d). [Motivo: %s]", giveplayer, giveplayerid, sendername, playerid,result);
            for(new i=0;i<MAX_PLAYERS;i++)
            {
        if(IsPlayerAdmin(i))
        {
        SendClientMessage(i,0xF60000AA,string);
        }
            }
        }
        else
            {
            format(string, sizeof(string), ">>ID: %d Nгo estб conectado :D", giveplayerid);
            SendClientMessage(playerid, 0xB3B6BCAA, string);
            }
Mesma coisa
Reply


Messages In This Thread
[AJUDA] Criando gangzones - by Pedraum - 29.05.2011, 21:17
Re: [AJUDA] Criando gangzones - by Miqueias Barros - 29.05.2011, 21:26
Re: [AJUDA] Criando gangzones - by Dr_Pawno - 29.05.2011, 22:26
Re: [AJUDA] Criando gangzones - by Pedraum - 30.05.2011, 00:00
Re: [AJUDA] Criando gangzones - by Pedraum - 31.05.2011, 01:19
Re: [AJUDA] Criando gangzones - by Pedraum - 01.06.2011, 21:33
Re: [AJUDA] Criando gangzones - by Shadoww5 - 01.06.2011, 22:37
Re: [AJUDA] Criando gangzones - by Pedraum - 01.06.2011, 22:41
Re: [AJUDA] Criando gangzones - by Pedraum - 01.06.2011, 22:45
AW: Re: [AJUDA] Criando gangzones - by Miqueias Barros - 02.06.2011, 02:33

Forum Jump:


Users browsing this thread: 3 Guest(s)