14.01.2016, 21:38
I'm having a few issues with my OnPlayerDeathScenario.
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.
Код:
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 other If scenarios do not work, so i was hoping someone see's something im not seeing.