14.01.2016, 23:24
pawn Код:
if(gTeam[killerid] == TEAM_CIVIL)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 6);
}
else if((gTeam[killerid] == TEAM_COP || gTeam[killerid] == TEAM_FBI || gTeam[killerid] == TEAM_CIA || gTeam[killerid] == TEAM_ARMY) && gTeam[playerid] == TEAM_CIVIL)
{
if(GetPlayerWantedLevel(playerid) == 0)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)-5);
SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Warning]{FFFFFF}: You have killed an innocent player and have been fined with 7.5K and -5 score.");
GivePlayerMoney(killerid, -7500);
}
else if(GetPlayerWantedLevel(playerid) >= 1 && GetPlayerWantedLevel(playerid) <= 3)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Warning]{FFFFFF}: You have killed a Low Suspect Player, You got fined 2.5k and -1 score, /ticket them in the future.");
GivePlayerMoney(killerid, -2500);
}
else if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= 5)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Warning]{FFFFFF}: You have killed a Suspected Player, You got 2.5k and +1 score.");
GivePlayerMoney(killerid, 2500);
}
else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 255)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+5);
SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Warning]{FFFFFF}: You have killed a High suspect player, you got 10K and 5 Score.");
GivePlayerMoney(killerid, 1000);
}
}
EDIT:
also make sure that you don't set the player's wanted level to 0 before these statements