public OnPlayerDeath(playerid, killerid, reason) { new oldlevel; new newlevel; oldlevel = GetPlayerWantedLevel(killerid); newlevel = oldlevel + 1; //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); }
iteam=GetPlayerTeam(i);
if(iteam==TEAM_COPS || iteam==TEAM_SWAT || iteam==TEAM_ARMY)
{
new string[128], location[128];
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
format(string, sizeof(string), "ATTEMPTED ESCAPE: %s has escaped from his handcuffs. Location: %s.", playername, location);
SendClientMessage(i, COLOR_CRIME, string);
SendClientMessage(i, COLOR_CRIME, "DISPATCH: All units in this area, please respond.");
}
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);
}
pawn Код:
|
return TeamChat(string);
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); return TeamChat(string);
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."); //PlayCrimeReportForPlayer(string, 0, 3); //Not implemented yet } 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); return TeamChat(string); }
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); return TeamChat(string);
public OnPlayerDeath(playerid, killerid, reason)
{
//if(!(killerid) && reason != 53) SendDeathMessage(killerid, playerid, reason); // Doesn't work..
if(killerid != INVALID_PLAYER_ID) // Let's confirm that the killerid is connected to the server
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
//SetPlayerWantedLevel(playerid, 0); // Removes wanted players killer, wanted level
SendClientMessage(killerid, COP_COLOR ,"You have committed a crime, FIRST DEGREE MURDER.");
new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(killerid, 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
TeamChat(string);
}
return 1;
}
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.");
//PlayCrimeReportForPlayer(string, 0, 3); //Not implemented yet
new string[256], name[MAX_PLAYER_NAME]; GetPlayerName(killerid, name, sizeof(name));
format(string, sizeof(string), "NEW CRIME REPORT: First Degree Murder, SUSPECT: {AFAFAF}%s{375FFF}", name);
TeamChat(string);
}
return 1;
}
Try this:
pawn Код:
|