13.05.2018, 18:28
Hello again, I've trying to edit the code!! you can do like this too
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(gTeam[killerid] == PoliceTeam(GetPlayerSkin(killerid)) && gTeam[playerid] == Civilian(GetPlayerSkin(playerid)))
{
switch(GetPlayerWantedLevel(playerid))
{
case 4 .. 30:
{
new string2[170],tName[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
GetPlayerName(killerid,tName,MAX_PLAYER_NAME);
format(string2, sizeof(string2), "{E6FD00}Officer %s[%d] has {00E6FD}Taken Down {E6FD00}%s[%d] which is at wanted level of %d!", tName, killerid, pName, playerid, GetPlayerWantedLevel(playerid));
SendClientMessageToAll(-1,string2);
format(string2, sizeof(string2), "~b~Taken Down ~W~%s(%d)", pName, playerid);
GameTextForPlayer(killerid, string2, 7000, 5);
}
}
}
return 1;
}