03.01.2015, 06:27
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new oldlevel;
new newlevel;
oldlevel = GetPlayerWantedLevel(killerid);
newlevel = oldlevel + 1;
if(killerid != INVALID_PLAYER_ID)
{
//if(!(killerid) && reason != 53) SendDeathMessage(killerid, playerid, reason); // Doesn't work..
SetPlayerWantedLevel(killerid, newlevel);
//SetPlayerWantedLevel(playerid, 0); // Removes wanted players killer, wanted level
SendClientMessage(killerid, COP_COLOR ,"You have committed a crime, FIRST DEGREE MURDER.");
new string[256], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "NEW CRIME REPORT: First Degree Murder, SUSPECT: {AFAFAF}%s{375FFF}", name);
//PlayCrimeReportForPlayer(string, 0, 3); //Not implemented yet
}
return TeamChat(string);
}