[Pedido] Comando /procurar
#9

nгo й /procurar ID MOTIVO

Й /su ID MOTIVO que vocк quer!

pawn Код:
if(strcmp(cmd, "/suspeito", true) == 0 || strcmp(cmd, "/su", true) == 0)
    {

        if(IsPlayerConnected(playerid))
        {
            if(!IsACop(playerid))
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um policial!");
                return 1;
            }
            if(OnDuty[playerid] != 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo Bateu o cartгo!");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: (/su)speito [id] [Descriзгo do Crime]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if (IsACop(playerid))
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(IsACop(giveplayerid))
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar su em Policiais!");
                        return 1;
                    }
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            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, COLOR_GRAD2, "USE: (/su)speito [id] [Descriзгo do Crime]");
                                return 1;
                            }
                            SetPlayerCriminal(giveplayerid,playerid, result);
                            return 1;
                    }
                }
                else
                {
                        SendClientMessage(playerid, COLOR_GRAD1, "  Esse jogador nгo estб conectado.");
                        return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, "   Vocк nгo й um Policial !");
            }
        }
        return 1;
 }
Reply


Messages In This Thread
Comando /procurar - by Arthenry - 13.07.2012, 23:42
Re: Comando /procurar - by Bieeel_Cwb - 13.07.2012, 23:46
Re: Comando /procurar - by Carlґ - 13.07.2012, 23:50
Re: Comando /procurar - by Arthenry - 14.07.2012, 00:15
Re: Comando /procurar - by Arthenry - 14.07.2012, 00:46
Re: Comando /procurar - by BreakDriFT - 14.07.2012, 00:47
AW: Comando /procurar - by denis15711 - 14.07.2012, 00:58
Re: Comando /procurar - by Arthenry - 14.07.2012, 01:40
Re: Comando /procurar - by Urubu_Rei - 14.07.2012, 02:32
Re: Comando /procurar - by Arthenry - 14.07.2012, 02:46

Forum Jump:


Users browsing this thread: 1 Guest(s)