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); } }
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);
}
}
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);
}
}
else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 255) { new wantedp, rewardp; wantedp = GetPlayerWantedLevel(playerid); rewardp = GivePlayerMoney(playerid, wantedp *500); SetPlayerScore(killerid, GetPlayerScore(killerid)+5); SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Server]:{FFFFFF} You have killed a High suspect player, you got 10K and 5 Score."); GivePlayerMoney(killerid, rewardp +1000); }
thanks, now it works.
would this work? Код:
else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 255) { new wantedp, rewardp; wantedp = GetPlayerWantedLevel(playerid); rewardp = GivePlayerMoney(playerid, wantedp *500); SetPlayerScore(killerid, GetPlayerScore(killerid)+5); SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Server]:{FFFFFF} You have killed a High suspect player, you got 10K and 5 Score."); GivePlayerMoney(killerid, rewardp +1000); } |
else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 255)
{
new wantedp, rewardp,string;
wantedp = GetPlayerWantedLevel(playerid);
rewardp = GivePlayerMoney(killerid, wantedp *500);
SetPlayerScore(killerid, GetPlayerScore(killerid)+5);
format(string,sizeof(string),"{FF0000}[Server]:{FFFFFF} You have killed a suspect of %i wanted level, you got $%i and 5 Score",wantedp,rewardp);
SendClientMessage(killerid, COLOR_WHITE, string);
}
switch(gTeam[playerid]) { case TEAM_COP: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } case TEAM_CIA: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } case TEAM_ARMY: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } case TEAM_CIVIL: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } }