OnPlayerDeath Scenarios.
#1

I'm having a few issues with my OnPlayerDeathScenario.

Код:
		if(gTeam[killerid] == TEAM_CIVIL)
		{
		SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 6);
		}

		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);
			}
		}
		if(gTeam[killerid] == TEAM_COP || gTeam[killerid] == TEAM_FBI || gTeam[killerid] == TEAM_CIA || gTeam[killerid] == TEAM_ARMY && gTeam[playerid] == TEAM_CIVIL)
		{
			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);
			}
		}
		if(gTeam[killerid] == TEAM_COP || gTeam[killerid] == TEAM_FBI || gTeam[killerid] == TEAM_CIA || gTeam[killerid] == TEAM_ARMY && gTeam[playerid] == TEAM_CIVIL)
		{
			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);
			}
		}
		if(gTeam[killerid] == TEAM_COP || gTeam[killerid] == TEAM_FBI || gTeam[killerid] == TEAM_CIA || gTeam[killerid] == TEAM_ARMY && gTeam[playerid] == TEAM_CIVIL)
		{
			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);
			}
		}
The only thing working right now is when a civillian kills a civillian, or when a cop shoots an innocent player.
The other If scenarios do not work, so i was hoping someone see's something im not seeing.
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: 1 Guest(s)