pawn Код:
if(WantedPoints[playerid] >= 1)
{
new price = WantedPoints[playerid] * 100;
if(PlayerInfo[killerid][pMembro] == 1)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 2)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na HQ Rotam, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 3)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 3;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos no Exйrcito, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 16)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 16;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Rotam-SF, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 11)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 11;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Federal, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 27)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 27;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar de SF, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 33)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 33;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Rodoviбria, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(IsACop(killerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsACop(i))
{
if(GetPlayerState(i) == 2)
{
PlayerPlaySound(i, 2134, 0.0, 0.0, 0.0);
}
else
{
PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0);
}
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$500");
GameTextForPlayer(i, gstring, 5000, 1);
GivePlayerMoney(i, 500);
}
}
}
}