Anti team-attack
#2

hmm i give you example

pawn Code:
public OnPlayerUpdate(playerid)
{
  if(GetPlayerSkin(playerid) == 280 || 281 || 282)//police skin
   {
   SetPlayerTeam(playerid,1);// if player use police skin, they are team 1
   }
  if(GetPlayerSkin(playerid) == 28)//bmydrug skin
   {
   SetPlayerTeam(playerid,2);// if player use terorrist skin, they are team 2
   }
  return 1;
}
put this under OnGameModeInit()

pawn Code:
public OnGameModeInit()
{
    EnableVehicleFriendlyFire();
    return 1;
}
Reply


Messages In This Thread
Anti team-attack - by TheSnaKe - 09.06.2013, 11:14
Re: Anti team-attack - by Guest123 - 09.06.2013, 11:35
Re: Anti team-attack - by Facerafter - 09.06.2013, 11:51
Re: Anti team-attack - by Vince - 09.06.2013, 12:20
Re: Anti team-attack - by TheSnaKe - 09.06.2013, 12:22
Re: Anti team-attack - by Facerafter - 09.06.2013, 12:29
Re: Anti team-attack - by TheSnaKe - 09.06.2013, 12:42
Re: Anti team-attack - by Aly - 09.06.2013, 12:54
Re: Anti team-attack - by TheSnaKe - 09.06.2013, 13:10
Re: Anti team-attack - by dEcooR - 09.06.2013, 13:41

Forum Jump:


Users browsing this thread: 3 Guest(s)