Don't let the health change if player from the same team how to do that???
#9

Quote:
Originally Posted by SpiderPork
NOTE: I did not make this:

pawn Код:
// Forwards
forward SettingPlayerTeam();

// OnGameModeInit
SetTimer("SettingPlayerTeam", 10, 1);

// On the end of your script
public SettingPlayerTeam()
{
  for(new i; i< MAX_PLAYERS; i++) SetPlayerTeam(i, gTeam[i]);
  return 1;
}
You need gTeam though.
But you can easily just use SetPlayerTeam under OnPlayerSpawn.
Thanks mate but I don't want set a team, I want if anybody shoot a player in the same team the health don't let change .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)