[Ajuda] Skin de presidiario ao ser preso..
#1

Alguem pode me ajudar a ter a skin 262 para a pessoa que for presa?

E que por favor, quando ela sair da cadeia, volte a skin normal..

Skin do presidiario> 262

Meu código de prender:

PHP код:
    if(strcmp(cmd"/prender"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
           {
            if(
IsACop(playerid))
            {
                if(
OnDuty[playerid] != 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Você não Bateu o cartão!");
                    return 
true;
                }
                if(!
PlayerToPoint(12.0playerid268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0playerid1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0playerid324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0playerid920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0playerid221.1459,115.3492,999.0156) && !PlayerToPoint(12.0playerid193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0playerid1545.7220,-1609.4769,13.3828)
                && !
PlayerToPoint(12.0playerid1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0playerid195.5733,158.4008,1003.0234)
                && !
PlayerToPoint(12.0playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0playerid264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0playerid1361,175.1075,1003.0234) && !PlayerToPoint(12.0playerid2049.2053,-2145.8562,13.6328) && !PlayerToPoint(12.0playerid321.8284,315.6733,999.1484) && !PlayerToPoint(12.0playerid709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {
// Jail spot
                    
SendClientMessage(playeridCOLOR_GREY"   Você não está perto da cela, não pode prender o suspeito !");
                    return 
true;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
time strval(tmp);
                if(
time || time 20) { SendClientMessage(playeridCOLOR_GREY"   O Tempo não pode ser menor que 1 nem maior que 20 !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bail strval(tmp);
                if(
bail || bail 1) { SendClientMessage(playeridCOLOR_GREY"   Fiança Tem Que ser 0=Não ou 1=Sim !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bailprice strval(tmp);
                if(
bailprice || bailprice 300000) { SendClientMessage(playeridCOLOR_GREY"   O Preço não pode ser menor que 0 nem maior que $300000 !"); return true; }
                new 
suspect giveplayerid;
                if(
IsPlayerConnected(suspect))
                {
                    if(
GetDistanceBetweenPlayers(playerid,suspect) < 15)
                    {
                         if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 1)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mínimo 1 nível de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Você Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
                            {
                                
format(stringsizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                         if(
PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mínimo 1 nível de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Você Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==24||PlayerInfo[playerid][pLider]==24)
                            {
                                
format(stringsizeof(string), "<< ROCAM %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 2)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nível de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Você Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                
format(stringsizeof(string), "<< B.O.P.E %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect10);
                            
SetPlayerPos(suspect,223.5335,110.3779,999.0156);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 3;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                              
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                           }
                        if(
PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nível de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Você Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
                            {
                                
format(stringsizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect5);
                            
SetPlayerPos(suspect,319.0175,317.0517,999.1484);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 5;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                          }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 3)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nível de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Você Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                
format(stringsizeof(string), "<< Forças Armadas %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect0);
                            
SetPlayerPos(suspect,-1293.2203,490.5885,11.1953);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 7;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nível de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Você Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                
format(stringsizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect3);
                            
SetPlayerPos(suspect,198.1076,175.0731,1003.0234);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Você foi preso por %d Segundos.   Fiança: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 4;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                    }
//distance
                
}//not connected
                
else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Esse não é um jogador ativo.");
                    return 
true;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Você não é um Oficial !");
                return 
true;
            }
        }
//not connected
        
return true;
    } 
Obrigado..
Reply
#2

pawn Код:
SetPlayerSkin(suspect,262);
Reply
#3

Aonde colocar isto irmão? rsr
Reply
#4

pode ser embaixo de
Quote:

PlayerInfo[suspect][pJailed] = 1;

Reply
#5

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 true;
                }
                if(!PlayerToPoint(12.0, playerid, 268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0, playerid, 1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0, playerid, 324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0, playerid, 920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0, playerid, 221.1459,115.3492,999.0156) && !PlayerToPoint(12.0, playerid, 193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0, playerid, 1545.7220,-1609.4769,13.3828)
                && !PlayerToPoint(12.0, playerid, 1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0, playerid, 195.5733,158.4008,1003.0234)
                && !PlayerToPoint(12.0, playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0, playerid, 264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0, playerid, 1361,175.1075,1003.0234) && !PlayerToPoint(12.0, playerid, 2049.2053,-2145.8562,13.6328) && !PlayerToPoint(12.0, playerid, 321.8284,315.6733,999.1484) && !PlayerToPoint(12.0, playerid, 709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {// Jail spot
                    SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
                    return true;
                }
                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 true;
                }
                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 true;
                }
                new time = strval(tmp);
                if(time < 1 || time > 20) { SendClientMessage(playerid, COLOR_GREY, "   O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return true; }
                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 true;
                }
                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 true; }
                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 true;
                }
                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 $300000 !"); return true; }
                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 true;
                            }
                            format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GivePlayerMoney(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", PlayerName(playerid));
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeaponsEx(suspect);
                            SetPlayerSkin(suspect,262);//AQUIIEE tbm PODE
                            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, 6);
                            SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            PlayerInfo[suspect][pJailTime] = time * 60;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%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);
                            WantAdvogado[suspect] = 1;
                            PlayerInfo[suspect][pMuted] = 0;
                            Controle(suspect, 1);
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            return true;
                        }
                         if(PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
                        {
                            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 true;
                            }
                            format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GivePlayerMoney(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", PlayerName(playerid));
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeaponsEx(suspect);
                            if(PlayerInfo[playerid][pMembro]==24||PlayerInfo[playerid][pLider]==24)
                            {
                                format(string, sizeof(string), "<< ROCAM %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 6);
                            SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            PlayerInfo[suspect][pJailTime] = time * 60;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%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);
                            WantAdvogado[suspect] = 1;
                            PlayerInfo[suspect][pMuted] = 0;
                            Controle(suspect, 1);
                            PlayerCuffed[suspect] = 0;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            return true;
                        }
                        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 true;
                            }
                            format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GivePlayerMoney(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", PlayerName(playerid));
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeaponsEx(suspect);
                            if(PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                format(string, sizeof(string), "<< B.O.P.E %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 10);
                            SetPlayerPos(suspect,223.5335,110.3779,999.0156);
                            PlayerInfo[suspect][pJailTime] = time * 60;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%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);
                            WantAdvogado[suspect] = 1;
                            Controle(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;
                            return true;
                           }
                        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 true;
                            }
                            format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GivePlayerMoney(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", PlayerName(playerid));
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeaponsEx(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, 5);
                            SetPlayerPos(suspect,319.0175,317.0517,999.1484);
                            PlayerInfo[suspect][pJailTime] = time * 60;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%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);
                            WantAdvogado[suspect] = 1;
                            Controle(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;
                            return true;
                          }
                        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 true;
                            }
                            format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GivePlayerMoney(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", PlayerName(playerid));
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeaponsEx(suspect);
                            if(PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                format(string, sizeof(string), "<< Forзas Armadas %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 0);
                            SetPlayerPos(suspect,-1293.2203,490.5885,11.1953);
                            PlayerInfo[suspect][pJailTime] = time * 60;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%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);
                            WantAdvogado[suspect] = 1;
                            Controle(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;
                            return true;
                        }
                        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 true;
                            }
                            format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            //GivePlayerMoney(suspect, -moneys);
                            format(string, sizeof(string), "Preso por %s", PlayerName(playerid));
                            GameTextForPlayer(suspect, string, 5000, 5);
                            ResetPlayerWeaponsEx(suspect);
                            if(PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                format(string, sizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>", sendername, giveplayer);
                                OOCNews(COLOR_LIGHTRED, string);
                            }
                            SetPlayerInterior(suspect, 3);
                            SetPlayerPos(suspect,198.1076,175.0731,1003.0234);
                            PlayerInfo[suspect][pJailTime] = time * 60;
                            if(bail == 1)
                            {
                                JailPrice[suspect] = bailprice;
                                format(string, sizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%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);
                            Controle(suspect, 1);
                            PlayerInfo[suspect][pMuted] = 0;
                            PlayerCuffed[suspect] = 0;
                            WantAdvogado[suspect] = 1;
                            PlayerInfo[suspect][pDrogas] = 0;
                            PlayerInfo[suspect][pDrogas2] = 0;
                            PlayerInfo[suspect][pDrogas3] = 0;
                            PlayerInfo[suspect][pMats] = 0;
                            return true;
                        }
                    }//distance
                }//not connected
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Esse nгo й um jogador ativo.");
                    return true;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um Oficial !");
                return true;
            }
        }//not connected
        return true;
    }
Reply
#6

Mano este й o codigo completo, setando as skins
mais, preciso q vc poste o CODE de seu GM em q o Prisioneiro sai da prisгo, para eu por pra setar
a antiga skin dele

PHP код:
    if(strcmp(cmd"/prender"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
           {
            if(
IsACop(playerid))
            {
                if(
OnDuty[playerid] != 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                    return 
true;
                }
                if(!
PlayerToPoint(12.0playerid268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0playerid1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0playerid324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0playerid920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0playerid221.1459,115.3492,999.0156) && !PlayerToPoint(12.0playerid193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0playerid1545.7220,-1609.4769,13.3828)
                && !
PlayerToPoint(12.0playerid1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0playerid195.5733,158.4008,1003.0234)
                && !
PlayerToPoint(12.0playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0playerid264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0playerid1361,175.1075,1003.0234) && !PlayerToPoint(12.0playerid2049.2053,-2145.8562,13.6328) && !PlayerToPoint(12.0playerid321.8284,315.6733,999.1484) && !PlayerToPoint(12.0playerid709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {
// Jail spot
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
                    return 
true;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
time strval(tmp);
                if(
time || time 20) { SendClientMessage(playeridCOLOR_GREY"   O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bail strval(tmp);
                if(
bail || bail 1) { SendClientMessage(playeridCOLOR_GREY"   Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bailprice strval(tmp);
                if(
bailprice || bailprice 300000) { SendClientMessage(playeridCOLOR_GREY"   O Preзo nгo pode ser menor que 0 nem maior que $300000 !"); return true; }
                new 
suspect giveplayerid;
                if(
IsPlayerConnected(suspect))
                {
                    if(
GetDistanceBetweenPlayers(playerid,suspect) < 15)
                    {
                         if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 1)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
                            {
                                
format(stringsizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                         if(
PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==24||PlayerInfo[playerid][pLider]==24)
                            {
                                
format(stringsizeof(string), "<< ROCAM %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 2)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                
format(stringsizeof(string), "<< B.O.P.E %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect10);
                            
SetPlayerPos(suspect,223.5335,110.3779,999.0156);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
PlayerInfo[suspect][pJailed] = 3;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                              
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                           }
                        if(
PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
                            {
                                
format(stringsizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
SetPlayerInterior(suspect5);
                            
SetPlayerPos(suspect,319.0175,317.0517,999.1484);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
PlayerInfo[suspect][pJailed] = 5;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                          }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 3)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                
format(stringsizeof(string), "<< Forзas Armadas %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect0);
                            
SetPlayerPos(suspect,-1293.2203,490.5885,11.1953);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
PlayerInfo[suspect][pJailed] = 7;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                
format(stringsizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect3);
                            
SetPlayerPos(suspect,198.1076,175.0731,1003.0234);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                                
SetPlayerSkin(suspect,262);
                            }
                            
PlayerInfo[suspect][pJailed] = 4;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                    }
//distance
                
}//not connected
                
else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Esse nгo й um jogador ativo.");
                    return 
true;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um Oficial !");
                return 
true;
            }
        }
//not connected
        
return true;
    } 
Ajudei?? Da +REP

EDIT Motive: [php][*/php] FAIL kkk errei na hr de escrever
Reply
#7

tente isto:
PHP код:
  {
        if(
IsPlayerConnected(playerid))
           {
            if(
IsACop(playerid))
            {
                if(
OnDuty[playerid] != 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                    return 
true;
                }
                if(!
PlayerToPoint(12.0playerid268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0playerid1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0playerid324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0playerid920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0playerid221.1459,115.3492,999.0156) && !PlayerToPoint(12.0playerid193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0playerid1545.7220,-1609.4769,13.3828)
                && !
PlayerToPoint(12.0playerid1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0playerid195.5733,158.4008,1003.0234)
                && !
PlayerToPoint(12.0playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0playerid264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0playerid1361,175.1075,1003.0234) && !PlayerToPoint(12.0playerid2049.2053,-2145.8562,13.6328) && !PlayerToPoint(12.0playerid321.8284,315.6733,999.1484) && !PlayerToPoint(12.0playerid709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {
// Jail spot
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
                    return 
true;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
time strval(tmp);
                if(
time || time 20) { SendClientMessage(playeridCOLOR_GREY"   O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bail strval(tmp);
                if(
bail || bail 1) { SendClientMessage(playeridCOLOR_GREY"   Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bailprice strval(tmp);
                if(
bailprice || bailprice 300000) { SendClientMessage(playeridCOLOR_GREY"   O Preзo nгo pode ser menor que 0 nem maior que $300000 !"); return true; }
                new 
suspect giveplayerid;
                if(
IsPlayerConnected(suspect))
                {
                    if(
GetDistanceBetweenPlayers(playerid,suspect) < 15)
                    {
                         if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 1)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
                            {
                                
format(stringsizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                         if(
PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==24||PlayerInfo[playerid][pLider]==24)
                            {
                                
format(stringsizeof(string), "<< ROCAM %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 2)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                
format(stringsizeof(string), "<< B.O.P.E %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect10);
                            
SetPlayerPos(suspect,223.5335,110.3779,999.0156);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 3;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                              
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                           }
                        if(
PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
                            {
                                
format(stringsizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect5);
                            
SetPlayerPos(suspect,319.0175,317.0517,999.1484);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 5;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                          }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 3)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                
format(stringsizeof(string), "<< Forзas Armadas %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect0);
                            
SetPlayerPos(suspect,-1293.2203,490.5885,11.1953);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 7;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                
format(stringsizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect3);
                            
SetPlayerPos(suspect,198.1076,175.0731,1003.0234);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 4;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            
SetPlayerSkin(suspect262);
                            return 
true;
                        }
                    }
//distance
                
}//not connected
                
else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Esse nгo й um jogador ativo.");
                    return 
true;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um Oficial !");
                return 
true;
            }
        }
//not connected
        
return true;
    } 
Reply
#8

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
tente isto:
PHP код:
  {
        if(
IsPlayerConnected(playerid))
           {
            if(
IsACop(playerid))
            {
                if(
OnDuty[playerid] != 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                    return 
true;
                }
                if(!
PlayerToPoint(12.0playerid268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0playerid1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0playerid324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0playerid920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0playerid221.1459,115.3492,999.0156) && !PlayerToPoint(12.0playerid193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0playerid1545.7220,-1609.4769,13.3828)
                && !
PlayerToPoint(12.0playerid1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0playerid195.5733,158.4008,1003.0234)
                && !
PlayerToPoint(12.0playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0playerid264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0playerid1361,175.1075,1003.0234) && !PlayerToPoint(12.0playerid2049.2053,-2145.8562,13.6328) && !PlayerToPoint(12.0playerid321.8284,315.6733,999.1484) && !PlayerToPoint(12.0playerid709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {
// Jail spot
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
                    return 
true;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
time strval(tmp);
                if(
time || time 20) { SendClientMessage(playeridCOLOR_GREY"   O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bail strval(tmp);
                if(
bail || bail 1) { SendClientMessage(playeridCOLOR_GREY"   Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bailprice strval(tmp);
                if(
bailprice || bailprice 300000) { SendClientMessage(playeridCOLOR_GREY"   O Preзo nгo pode ser menor que 0 nem maior que $300000 !"); return true; }
                new 
suspect giveplayerid;
                if(
IsPlayerConnected(suspect))
                {
                    if(
GetDistanceBetweenPlayers(playerid,suspect) < 15)
                    {
                         if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 1)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
                            {
                                
format(stringsizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                         if(
PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==24||PlayerInfo[playerid][pLider]==24)
                            {
                                
format(stringsizeof(string), "<< ROCAM %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 2)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                
format(stringsizeof(string), "<< B.O.P.E %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect10);
                            
SetPlayerPos(suspect,223.5335,110.3779,999.0156);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 3;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                              
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                           }
                        if(
PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
                            {
                                
format(stringsizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect5);
                            
SetPlayerPos(suspect,319.0175,317.0517,999.1484);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 5;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                          }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 3)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                
format(stringsizeof(string), "<< Forзas Armadas %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect0);
                            
SetPlayerPos(suspect,-1293.2203,490.5885,11.1953);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 7;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                
format(stringsizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect3);
                            
SetPlayerPos(suspect,198.1076,175.0731,1003.0234);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 4;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            
SetPlayerSkin(suspect262);
                            return 
true;
                        }
                    }
//distance
                
}//not connected
                
else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Esse nгo й um jogador ativo.");
                    return 
true;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um Oficial !");
                return 
true;
            }
        }
//not connected
        
return true;
    } 
[Full]Garfield[XDB] creio q seu codigo estб errado, pois o player sу terб a SKIN se for preso pela Polнcia Cнvil

o Meu deve estar certo, pois setarб seja qual polнcia for
Reply
#9

PHP код:
#include a_samp


#define PLAYER_ANGLE_NORTH              (0)                                     // Olhando para o norte
#define PLAYER_ANGLE_WEST               (90)                                    // Olhando para oeste
#define PLAYER_ANGLE_EAST               (270)                                   // Olhando para o leste
#define PLAYER_ANGLE_SOUTH              (180)                                   // Olhando para o sul.



public OnFilterScriptInit(){
    return 
true;
}



 if(
strcmp(cmd"/prender"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
           {
            if(
IsACop(playerid))
            {
                if(
OnDuty[playerid] != 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                    return 
true;
                }
                if(!
PlayerToPoint(12.0playerid268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0playerid1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0playerid324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0playerid920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0playerid221.1459,115.3492,999.0156) && !PlayerToPoint(12.0playerid193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0playerid1545.7220,-1609.4769,13.3828)
                && !
PlayerToPoint(12.0playerid1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0playerid195.5733,158.4008,1003.0234)
                && !
PlayerToPoint(12.0playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0playerid264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0playerid1361,175.1075,1003.0234) && !PlayerToPoint(12.0playerid2049.2053,-2145.8562,13.6328) && !PlayerToPoint(12.0playerid321.8284,315.6733,999.1484) && !PlayerToPoint(12.0playerid709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {
// Jail spot
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
                    return 
true;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
time strval(tmp);
                if(
time || time 20) { SendClientMessage(playeridCOLOR_GREY"   O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bail strval(tmp);
                if(
bail || bail 1) { SendClientMessage(playeridCOLOR_GREY"   Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return true; }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
                    return 
true;
                }
                new 
bailprice strval(tmp);
                if(
bailprice || bailprice 300000) { SendClientMessage(playeridCOLOR_GREY"   O Preзo nгo pode ser menor que 0 nem maior que $300000 !"); return true; }
                new 
suspect giveplayerid;
                if(
IsPlayerConnected(suspect))
                {
                    if(
GetDistanceBetweenPlayers(playerid,suspect) < 15)
                    {
                         if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 1)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
                            {
                                
format(stringsizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                         if(
PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no mнnimo 1 nнvel de procurado!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==24||PlayerInfo[playerid][pLider]==24)
                            {
                                
format(stringsizeof(string), "<< ROCAM %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect6);
                            
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 1;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pMuted] = 0;
                            
Controle(suspect1);
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 2)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
                            {
                                
format(stringsizeof(string), "<< B.O.P.E %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect10);
                            
SetPlayerPos(suspect,223.5335,110.3779,999.0156);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 3;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                              
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                           }
                        if(
PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
                            {
                                
format(stringsizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect5);
                            
SetPlayerPos(suspect,319.0175,317.0517,999.1484);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 5;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                          }
                        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 3)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
                            {
                                
format(stringsizeof(string), "<< Forзas Armadas %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect0);
                            
SetPlayerPos(suspect,-1293.2203,490.5885,11.1953);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 7;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
WantAdvogado[suspect] = 1;
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        if(
PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
                        {
                            
GetPlayerName(suspectgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            if(
WantedPoints[suspect] < 1)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador deve ter no minimo 1 nнvel de procura!");
                                return 
true;
                            }
                            
format(stringsizeof(string), "* Vocк Prendeu %s !"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
//GivePlayerMoney(suspect, -moneys);
                            
format(stringsizeof(string), "Preso por %s"PlayerName(playerid));
                            
GameTextForPlayer(suspectstring50005);
                            
ResetPlayerWeaponsEx(suspect);
                            if(
PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
                            {
                                
format(stringsizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>"sendernamegiveplayer);
                                
OOCNews(COLOR_LIGHTREDstring);
                            }
                            
SetPlayerInterior(suspect3);
                            
SetPlayerPos(suspect,198.1076,175.0731,1003.0234);
                            
PlayerInfo[suspect][pJailTime] = time 60;
                            if(
bail == 1)
                            {
                                
JailPrice[suspect] = bailprice;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: $%d"PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            else
                            {
                                
JailPrice[suspect] = 0;
                                
format(stringsizeof(string), "Vocк foi preso por %d Segundos.   Fianзa: Desativada"PlayerInfo[suspect][pJailTime]);
                                
SendClientMessage(suspectCOLOR_LIGHTBLUEstring);
                            }
                            
PlayerInfo[suspect][pJailed] = 4;
                            
SetPlayerFree(suspect,playerid"Foi Preso");
                            
WantedPoints[suspect] = 0;
                            
SetPlayerWantedLevel(suspect0);
                            
Controle(suspect1);
                            
PlayerInfo[suspect][pMuted] = 0;
                            
PlayerCuffed[suspect] = 0;
                            
WantAdvogado[suspect] = 1;
                            
PlayerInfo[suspect][pDrogas] = 0;
                            
PlayerInfo[suspect][pDrogas2] = 0;
                            
PlayerInfo[suspect][pDrogas3] = 0;
                            
PlayerInfo[suspect][pMats] = 0;
                            return 
true;
                        }
                        
SetPlayerSkin(suspect262);
                    }
//distance
                
}//not connected
                
else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Esse nгo й um jogador ativo.");
                    return 
true;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um Oficial !");
                return 
true;
            }
        }
//not connected
        
return true;
    } 
Sу postei na parte lуgica, pois desconheзo este cуdigo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)