gives wanted level to non govermnet team problem
#1

hey i want if player in Non Goverment team if attack a goverment team then that player get wanted level

but this code will give also to goverment team if they attack the goverment team

Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{

  if(damagedid != INVALID_PLAYER_ID||playerid != INVALID_PLAYER_ID)
    {
        if (gTeam[playerid] != TEAM_COP || gTeam[playerid] != TEAM_ARMY || gTeam[playerid] != TEAM_CIA) // check if the victim is from the same team as the shooter.
        {
        if (gTeam[damagedid] == TEAM_COP || gTeam[damagedid] == TEAM_ARMY || gTeam[damagedid] == TEAM_CIA){
   				 IncreaseWantedLevel(playerid,1);
   			 }

		}

	}
   return 1;
}
i also tired on player take damage but not worked
Reply


Messages In This Thread
gives wanted level to non govermnet team problem - by dash5487 - 11.06.2013, 05:10
Re: gives wanted level to non govermnet team problem - by Sascha - 11.06.2013, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)