OnPlayerDeath Scenarios.
#5

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);
            }
        }
Try this :P

EDIT:
also make sure that you don't set the player's wanted level to 0 before these statements
Reply


Messages In This Thread
OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 21:38
Re: OnPlayerDeath Scenarios. - by Eth - 14.01.2016, 21:44
Re: OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 21:56
Re: OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 23:00
Re: OnPlayerDeath Scenarios. - by Eth - 14.01.2016, 23:24
Re: OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 23:30
Re: OnPlayerDeath Scenarios. - by Eth - 14.01.2016, 23:36
Re: OnPlayerDeath Scenarios. - by yvoms - 15.01.2016, 00:10
Re: OnPlayerDeath Scenarios. - by xTURBOx - 15.01.2016, 03:46
Re: OnPlayerDeath Scenarios. - by Pottus - 15.01.2016, 04:59

Forum Jump:


Users browsing this thread: 2 Guest(s)