05.07.2015, 09:44
PHP код:
if(gTeam{playerid} == CIVILIANS && gTeam{playerid} == MEDICS)
{
if(GetPlayerWantedLevel(playerid) >= 4)
{
if(gTeam{killerid} == COPS)
{
new pay = random(1500) + 3000;
new string[356], string1[100], string2[256];
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
format(string, sizeof(string), "%s (%d) has been taken down by Officer %s (%d)!",GetName(playerid),playerid,GetName(killerid),killerid);
SendClientMessageToAll(COLOR_CYAN,string);
format(string1, sizeof(string1), "You have been taken down by %s (%d). You lose: $%d",GetName(killerid),killerid, pay);
SendClientMessage(playerid,COLOR_CYAN,string1);
format(string2, sizeof(string2), "You have taken down %s (%d). You received: $%d ",GetName(playerid),playerid, pay);
SendClientMessage(killerid,COLOR_CYAN,string2);
GoToJail{playerid} = true;
GivePlayerCashEx(killerid, pay);
GivePlayerCashEx(playerid, -pay);
return 1;
}
}
}