Nivel de procurado -
DexterClark - 23.11.2015
Olб... queria deixar meu comando /prender Somente em estrelas
Mбs como assim?
Tipo ... /prender [ID] [Estrelas]. Quando colocassem esse comando , ele jб checava o nivel de estrelas da pessoa e prendia pelo tempo do valor da estrela... Quem poder ajudar
Exemplo: /prender 1 4
A cada uma estrela vale 2 minutos... So que ao invez do player colocar o tempo , o sistema jб detecta as estrelas e jб vai o tempo certo.
pawn Код:
if(strcmp(cmd, "/prender", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
new playerstate = GetPlayerState(playerid);
if(!PlayerToPoint(12.0, playerid, 593.3477,-1508.6302,15.2461) && !PlayerToPoint(12.0, playerid, 2464.7168,2353.5493,71.0825)
&& (!PlayerToPoint(12.0, playerid,1795.2418,-1589.9933,13.5027) && (playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER) ) )
{// Jail spot
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 30) { SendClientMessage(playerid, COLOR_GREY, " O Tempo nгo pode ser menor que 1 nem maior que 30 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 300000) { SendClientMessage(playerid, COLOR_GREY, " O Preзo nгo pode ser menor que 0 nem maior que R$300000 !"); return 1; }
new suspect = giveplayerid;
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 15)
{
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no mнnimo 1 nнvel de procurado!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
{
format(string, sizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 1;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
PlayerInfo[suspect][pMuted] = 0;
TogglePlayerControllable(suspect, 1);
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==34||PlayerInfo[playerid][pLider]==34)
{
format(string, sizeof(string), "<< Brave %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.4636,2397.7380,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 4;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
{
format(string, sizeof(string), "<< BOPE %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.4636,2397.7380,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 4;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
{
format(string, sizeof(string), "<< Exйrcito %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2490.7300,2359.5286,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 7;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
{
format(string, sizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2480.0461,2359.8284,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 5;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
{
format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2490.7300,2359.5286,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==26||PlayerInfo[playerid][pLider]==26)
{
format(string, sizeof(string), "<< GATE %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.0679,2376.3469,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==27||PlayerInfo[playerid][pLider]==27)
{
format(string, sizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2472.1611,2365.6731,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 31 || PlayerInfo[playerid][pLider] == 31)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==31||PlayerInfo[playerid][pLider]==31)
{
format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 39 || PlayerInfo[playerid][pLider] == 39)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==39||PlayerInfo[playerid][pLider]==39)
{
format(string, sizeof(string), "<< 18°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 41 || PlayerInfo[playerid][pLider] == 41)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==41||PlayerInfo[playerid][pLider]==41)
{
format(string, sizeof(string), "<< 32°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 32 || PlayerInfo[playerid][pLider] == 32)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==32||PlayerInfo[playerid][pLider]==32)
{
format(string, sizeof(string), "<< 23єBPM %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2472.1611,2365.6731,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
}//distance
}//not connected
else
{
SendClientMessage(playerid, COLOR_GREY, " Esse nгo й um jogador ativo.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Oficial !");
return 1;
}
}//not connected
return 1;
}
Re: Nivel de procurado -
SaDaN - 23.11.2015
Posta o cуdigo completo.
Re: Nivel de procurado -
DexterClark - 23.11.2015
pawn Код:
if(strcmp(cmd, "/prender", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
new playerstate = GetPlayerState(playerid);
if(!PlayerToPoint(12.0, playerid, 593.3477,-1508.6302,15.2461) && !PlayerToPoint(12.0, playerid, 2464.7168,2353.5493,71.0825)
&& (!PlayerToPoint(12.0, playerid,1795.2418,-1589.9933,13.5027) && (playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER) ) )
{// Jail spot
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 30) { SendClientMessage(playerid, COLOR_GREY, " O Tempo nгo pode ser menor que 1 nem maior que 30 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 300000) { SendClientMessage(playerid, COLOR_GREY, " O Preзo nгo pode ser menor que 0 nem maior que R$300000 !"); return 1; }
new suspect = giveplayerid;
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 15)
{
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no mнnimo 1 nнvel de procurado!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
{
format(string, sizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 1;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
PlayerInfo[suspect][pMuted] = 0;
TogglePlayerControllable(suspect, 1);
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==34||PlayerInfo[playerid][pLider]==34)
{
format(string, sizeof(string), "<< Brave %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.4636,2397.7380,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 4;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==2||PlayerInfo[playerid][pLider]==2)
{
format(string, sizeof(string), "<< BOPE %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.4636,2397.7380,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 4;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==3||PlayerInfo[playerid][pLider]==3)
{
format(string, sizeof(string), "<< Exйrcito %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2490.7300,2359.5286,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 7;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==11||PlayerInfo[playerid][pLider]==11)
{
format(string, sizeof(string), "<< Policial Federal %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2480.0461,2359.8284,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 5;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==16||PlayerInfo[playerid][pLider]==16)
{
format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2490.7300,2359.5286,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==26||PlayerInfo[playerid][pLider]==26)
{
format(string, sizeof(string), "<< GATE %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.0679,2376.3469,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==27||PlayerInfo[playerid][pLider]==27)
{
format(string, sizeof(string), "<< Policial Civil %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2472.1611,2365.6731,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 31 || PlayerInfo[playerid][pLider] == 31)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==31||PlayerInfo[playerid][pLider]==31)
{
format(string, sizeof(string), "<< Policial Rodoviбrio %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 39 || PlayerInfo[playerid][pLider] == 39)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==39||PlayerInfo[playerid][pLider]==39)
{
format(string, sizeof(string), "<< 18°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 41 || PlayerInfo[playerid][pLider] == 41)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==41||PlayerInfo[playerid][pLider]==41)
{
format(string, sizeof(string), "<< 32°BPM %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2471.5713,2386.9651,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 32 || PlayerInfo[playerid][pLider] == 32)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no minimo 1 nнvel de procura!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GranaBSCOWNA(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMembro]==32||PlayerInfo[playerid][pLider]==32)
{
format(string, sizeof(string), "<< 23єBPM %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 18);
SetPlayerPos(suspect,2472.1611,2365.6731,71.0825);
PlayerInfo[suspect][pJailTime] = time * 10;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 3;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
TogglePlayerControllable(suspect, 1);
PlayerInfo[suspect][pMuted] = 0;
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
//ProcuradoPlayer(suspect);
return 1;
}
}//distance
}//not connected
else
{
SendClientMessage(playerid, COLOR_GREY, " Esse nгo й um jogador ativo.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Oficial !");
return 1;
}
}//not connected
return 1;
}