27.06.2015, 21:07
PHP код:
if(gTeam{killerid} == CIVILIANS)
{
new string[256], copmsg[256], ID;
SetPlayerWantedLevelEx(killerid, GetPlayerWantedLevel(killerid) + 6);
format(string, sizeof(string), "Comitted A Crime: Murder - Wanted Level %d", GetPlayerWantedLevel(killerid));
SendClientMessage(killerid, RED, string);
format(copmsg, sizeof(copmsg), "Suspect %s (%d) has committed 'Murder' near %s", GetName(playerid), playerid, ReturnPlayerZone(ID));
SendRadioMessageToCops(copmsg);
pInfo[killerid][pKills] ++;
pInfo[playerid][pDeaths] ++;
pInfo[playerid][pCrimes] ++;
pInfo[killerid][pWantedLevel] = pInfo[killerid][pWantedLevel] + 6;
return 1;
}
if(GetPlayerWantedLevel(playerid) >= 4)
{
if(gTeam{killerid} == COPS)
{
new string[356];
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);
GoToJail{playerid} = true;
GivePlayerCashEx(killerid, 1000);
pInfo[killerid][pKills] ++;
pInfo[playerid][pDeaths] ++;
pInfo[killerid][pArrest] ++;
SetPlayerWantedLevelEx(playerid, 0);
return 1;
}
}