[Ajuda] /Prender
#1

Olá, pessoal!

Antes que vocês começem a falar besteira, não todos mas alguns.... Eu estou aprendendo pawno ainda....
"Ah mais se vira; para de usar gamemodes e cria a sua; etc...." Eu ainda estou aprendendo e estou tentando.

Eu queria saber como eu faço para tirar o tempo, fiança e preço da fiança deste código: Deixando somente o /prender [ID] ele já detectaria quanto nível de procurado a pessoa estava e iria multiplicar por 60.

Não precisam fazer para min, só a base eu já agradeço.... más caso queira resolver tudo ahsuashuahs valeu!

pawn Код:
if(strcmp(cmd, "/prender", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsACop(playerid))
            {
                if(OnDuty[playerid] != 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Você não Bateu o cartão!");
                    return 1;
                }
                new playerstate = GetPlayerState(playerid);
                if(!PlayerToPoint(12.0, playerid, 593.3477,-1508.6302,15.2461) && !PlayerToPoint(12.0, playerid, 2464.7168,2353.5493,71.0825)
                 && (!PlayerToPoint(12.0, playerid,1795.2418,-1589.9933,13.5027) && (playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER) ) )
                {// Jail spot
                    SendClientMessage(playerid, COLOR_GREY, "   Você não está perto da cela, não pode prender o suspeito !");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 1;
                }
                new time = strval(tmp);
                if(time < 1 || time > 30) { SendClientMessage(playerid, COLOR_GREY, "   O Tempo não pode ser menor que 1 nem maior que 30 !"); return 1; }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 1;
                }
                new bail = strval(tmp);
                if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Fiança Tem Que ser 0=Não ou 1=Sim !"); return 1; }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 1;
                }
                new bailprice = strval(tmp);
                if(bailprice < 0 || bailprice > 300000) { SendClientMessage(playerid, COLOR_GREY, "   O Preço não pode ser menor que 0 nem maior que R$300000 !"); return 1; }
                new suspect = giveplayerid;
                if(IsPlayerConnected(suspect))
                {
                    if(GetDistanceBetweenPlayers(playerid,suspect) < 15)
                    {
                        if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no mínimo 1 nível de procurado!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
                            {
                                format(string, sizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 1;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            PlayerInfo[suspect][pMuted] = 0;
                            TogglePlayerControllable(suspect, 1);
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==34||PlayerInfo[playerid][pLider]==34)
                            {
                                format(string, sizeof(string), "<< Brave %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.4636,2397.7380,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 4;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                format(string, sizeof(string), "<< BOPE %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.4636,2397.7380,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 4;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                format(string, sizeof(string), "<< Exército %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2490.7300,2359.5286,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 7;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
                            {
                                format(string, sizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2480.0461,2359.8284,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 5;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                format(string, sizeof(string), "<< Policial Rodoviário %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2490.7300,2359.5286,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==26||PlayerInfo[playerid][pLider]==26)
                            {
                                format(string, sizeof(string), "<< GATE %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.0679,2376.3469,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==27||PlayerInfo[playerid][pLider]==27)
                            {
                                format(string, sizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2472.1611,2365.6731,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 31 || PlayerInfo[playerid][pLider] == 31)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==31||PlayerInfo[playerid][pLider]==31)
                            {
                                format(string, sizeof(string), "<< Policial Rodoviário %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                         if(PlayerInfo[playerid][pMembro] == 39 || PlayerInfo[playerid][pLider] == 39)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==39||PlayerInfo[playerid][pLider]==39)
                            {
                                format(string, sizeof(string), "<< 18°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 41 || PlayerInfo[playerid][pLider] == 41)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==41||PlayerInfo[playerid][pLider]==41)
                            {
                                format(string, sizeof(string), "<< 32°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMembro] == 32 || PlayerInfo[playerid][pLider] == 32)
                        {
                            GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(WantedPoints[suspect] < 1)
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nível de procura!");
                                return 1;
                            }
                            format(string, sizeof(string), "* Você Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GranaBSCOWNA(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", sendername);
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeapons(suspect);
                            if(PlayerInfo[playerid][pMembro]==32||PlayerInfo[playerid][pLider]==32)
                            {
                                format(string, sizeof(string), "<< 23ºBPM %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 18);
                            SetPlayerPos(suspect,2472.1611,2365.6731,71.0825);
                            PlayerInfo[suspect][pJailTime] = time * 10;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            else
                            {
                                JailPrice[suspect] = 0;
                                format(string, sizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada", PlayerInfo[suspect][pJailTime]);
                                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                            }
                            PlayerInfo[suspect][pJailed] = 3;
                            SetPlayerFree(suspect,playerid, "Foi Preso");
                            WantedPoints[suspect] = 0;
                            SetPlayerWantedLevel(suspect, 0);
                            TogglePlayerControllable(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            //ProcuradoPlayer(suspect);
                            return 1;
                        }
                    }//distance
                }//not connected
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Esse não é um jogador ativo.");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Você não é um Oficial !");
                return 1;
            }
        }//not connected
        return 1;
    }
Reply
#2

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

    if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um policial");

    if(OnDuty[playerid] != 1) return SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo Bateu o cartгo!");

    new playerstate = GetPlayerState(playerid);

    if(!PlayerToPoint(12.0, playerid, 593.3477,-1508.6302,15.2461) && !PlayerToPoint(12.0, playerid, 2464.7168,2353.5493,71.0825)
    && (!PlayerToPoint(12.0, playerid,1795.2418,-1589.9933,13.5027) && (playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER) ) )
    {
        // Jail spot
        SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
        return 1;
    }

    tmp = strtok(cmdtext, idx);

    new id;

    id = strval(tmp);

    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id]");

    if(!IsPlayerIsConnected(id)) return SendClientMessage(playerid, COLOR_GREY, "Jogador(a) off");

    if(GetDistanceBetweenPlayers(playerid, id) > 15) return SendClientMessage(playerid, COLOR_GREY, "Estб muito longe o jogador");

    if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no mнnimo 1 nнvel de procurado!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);

        format(string, sizeof(string), "Preso por %s", sendername);

        GameTextForPlayer(id, string, 5000, 5);

        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
        {

            format(string, sizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailTime] = time * 10;

        PlayerInfo[id][pJailed] = 1;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        PlayerInfo[id][pMuted] = 0;
        TogglePlayerControllable(id, 1);
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);

        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;

        return 1;
    }

    if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));

        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);

        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==34||PlayerInfo[playerid][pLider]==34)
        {

            format(string, sizeof(string), "<< Brave %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.4636,2397.7380,71.0825);
        PlayerInfo[id][pJailed] = 4;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;

        //ProcuradoPlayer(id);

        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;

        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
        {

            format(string, sizeof(string), "<< BOPE %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.4636,2397.7380,71.0825);
        PlayerInfo[id][pJailTime] = time * 10;
        PlayerInfo[id][pJailed] = 4;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
        {

            format(string, sizeof(string), "<< Exйrcito %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2490.7300,2359.5286,71.0825);
        PlayerInfo[id][pJailTime] = time * 10;
        PlayerInfo[id][pJailed] = 7;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
        {

            format(string, sizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2480.0461,2359.8284,71.0825);
        PlayerInfo[id][pJailed] = 5;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
        {

            format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2490.7300,2359.5286,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==26||PlayerInfo[playerid][pLider]==26)
        {

            format(string, sizeof(string), "<< GATE %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.0679,2376.3469,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==27||PlayerInfo[playerid][pLider]==27)
        {

            format(string, sizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2472.1611,2365.6731,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 31 || PlayerInfo[playerid][pLider] == 31)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");
        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==31||PlayerInfo[playerid][pLider]==31)
        {

            format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 39 || PlayerInfo[playerid][pLider] == 39)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");
        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==39||PlayerInfo[playerid][pLider]==39)
        {

            format(string, sizeof(string), "<< 18°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        //ProcuradoPlayer(id);
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 41 || PlayerInfo[playerid][pLider] == 41)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==41||PlayerInfo[playerid][pLider]==41)
        {

            format(string, sizeof(string), "<< 32°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 32 || PlayerInfo[playerid][pLider] == 32)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==32||PlayerInfo[playerid][pLider]==32)
        {

            format(string, sizeof(string), "<< 23єBPM %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2472.1611,2365.6731,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWanted(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWanted(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWanted(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWanted(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWanted(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWanted(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    return 1;
}
Reply
#3

pawn Код:
:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53924) : error 017: undefined symbol "time"
C:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53939) : error 017: undefined symbol "GetPlayerWanted"
C:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53940) : error 017: undefined symbol "GetPlayerWanted"
C:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53941) : error 017: undefined symbol "GetPlayerWanted"
C:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53942) : error 017: undefined symbol "GetPlayerWanted"
C:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53943) : error 017: undefined symbol "GetPlayerWanted"
C:\Users\Kau&#227;\Desktop\Jogos\Gamemode\gamemodes\gmtingal.pwn(53944) : error 017: undefined symbol "GetPlayerWanted"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Consegui resolver os demais ajustando com a minha gamemode que tinha que colocar Level no final ficando assim: GetPlayerWantedLevel

Agora o outro nem sei, pode ajudar?
Reply
#4

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

    if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um policial");

    if(OnDuty[playerid] != 1) return SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo Bateu o cartгo!");

    new playerstate = GetPlayerState(playerid);

    if(!PlayerToPoint(12.0, playerid, 593.3477,-1508.6302,15.2461) && !PlayerToPoint(12.0, playerid, 2464.7168,2353.5493,71.0825)
    && (!PlayerToPoint(12.0, playerid,1795.2418,-1589.9933,13.5027) && (playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER) ) )
    {
        // Jail spot
        SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
        return 1;
    }

    tmp = strtok(cmdtext, idx);

    new id;

    id = strval(tmp);

    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id]");

    if(!IsPlayerIsConnected(id)) return SendClientMessage(playerid, COLOR_GREY, "Jogador(a) off");

    if(GetDistanceBetweenPlayers(playerid, id) > 15) return SendClientMessage(playerid, COLOR_GREY, "Estб muito longe o jogador");

    if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no mнnimo 1 nнvel de procurado!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);

        format(string, sizeof(string), "Preso por %s", sendername);

        GameTextForPlayer(id, string, 5000, 5);

        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
        {

            format(string, sizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);

        PlayerInfo[id][pJailed] = 1;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        PlayerInfo[id][pMuted] = 0;
        TogglePlayerControllable(id, 1);
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);

        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;

        return 1;
    }

    if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));

        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);

        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==34||PlayerInfo[playerid][pLider]==34)
        {

            format(string, sizeof(string), "<< Brave %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.4636,2397.7380,71.0825);
        PlayerInfo[id][pJailed] = 4;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;

        //ProcuradoPlayer(id);

        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;

        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
        {

            format(string, sizeof(string), "<< BOPE %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.4636,2397.7380,71.0825);
        PlayerInfo[id][pJailed] = 4;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
        {

            format(string, sizeof(string), "<< Exйrcito %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }

        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2490.7300,2359.5286,71.0825);
        PlayerInfo[id][pJailed] = 7;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
        {

            format(string, sizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2480.0461,2359.8284,71.0825);
        PlayerInfo[id][pJailed] = 5;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
        {

            format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2490.7300,2359.5286,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);

        if(PlayerInfo[playerid][pMembro]==26||PlayerInfo[playerid][pLider]==26)
        {

            format(string, sizeof(string), "<< GATE %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.0679,2376.3469,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==27||PlayerInfo[playerid][pLider]==27)
        {

            format(string, sizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2472.1611,2365.6731,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 31 || PlayerInfo[playerid][pLider] == 31)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");
        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==31||PlayerInfo[playerid][pLider]==31)
        {

            format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 39 || PlayerInfo[playerid][pLider] == 39)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");
        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==39||PlayerInfo[playerid][pLider]==39)
        {

            format(string, sizeof(string), "<< 18°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        //ProcuradoPlayer(id);
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 41 || PlayerInfo[playerid][pLider] == 41)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==41||PlayerInfo[playerid][pLider]==41)
        {

            format(string, sizeof(string), "<< 32°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2471.5713,2386.9651,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    if(PlayerInfo[playerid][pMembro] == 32 || PlayerInfo[playerid][pLider] == 32)
    {

        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(WantedPoints[id] < 1) return SendClientMessage(playerid, COLOR_GREY, "   O Jogador deve ter no minimo 1 nнvel de procura!");

        format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        //GranaBSCOWNA(id, -moneys);
        format(string, sizeof(string), "Preso por %s", sendername);
        GameTextForPlayer(id, string, 5000, 5);
        ResetPlayerWeapons(id);
        if(PlayerInfo[playerid][pMembro]==32||PlayerInfo[playerid][pLider]==32)
        {

            format(string, sizeof(string), "<< 23єBPM %s prendeu o suspeito %s >>", sendername, giveplayer);
            OOCNews(COLOR_LIGHTRED, string);
        }
        SetPlayerInterior(id, 18);
        SetPlayerPos(id,2472.1611,2365.6731,71.0825);
        PlayerInfo[id][pJailed] = 3;
        SetPlayerFree(id,playerid, "Foi Preso");
        WantedPoints[id] = 0;
        SetPlayerWantedLevel(id, 0);
        TogglePlayerControllable(id, 1);
        PlayerInfo[id][pMuted] = 0;
        PlayerCuffed[id] = 0;
        PlayerInfo[id][pDrogas] = 0;
        PlayerInfo[id][pDrogas2] = 0;
        PlayerInfo[id][pDrogas3] = 0;
        PlayerInfo[id][pMats] = 0;
        //ProcuradoPlayer(id);
        if(GetPlayerWantedLevel(id) == 1) PlayerInfo[id][pJailTime] = 60;
        if(GetPlayerWantedLevel(id) == 2) PlayerInfo[id][pJailTime] = 2*60;
        if(GetPlayerWantedLevel(id) == 3) PlayerInfo[id][pJailTime] = 3*60;
        if(GetPlayerWantedLevel(id) == 4) PlayerInfo[id][pJailTime] = 4*60;
        if(GetPlayerWantedLevel(id) == 5) PlayerInfo[id][pJailTime] = 5*60;
        if(GetPlayerWantedLevel(id) == 6) PlayerInfo[id][pJailTime] = 6*60;
        return 1;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)