Allways 1hp
#2

pawn Код:
public OnGameModeInit()
{
  SetTimer("HPT", 1, true);
  return 1;
}

forward HPT();
public HPT()
{
  for(new i=0; i<GetMaxPlayers(); i++)
  {
    if(IsPlayerConnected(i))
      SetPlayerHealth(i, 1.0);
  }
  return 1;
}
(yes I know, this causes lags and isn't a good way to code, although the standart of the code fits to the standart of the question ; -)
Reply


Messages In This Thread
Allways 1hp - by lukas567 - 13.12.2011, 13:29
Re: Allways 1hp - by Sascha - 13.12.2011, 13:50
Re: Allways 1hp - by TheArcher - 13.12.2011, 13:55
Re: Allways 1hp - by iTorran - 13.12.2011, 14:03
Re: Allways 1hp - by Phanto90 - 13.12.2011, 14:07
Re: Allways 1hp - by TheArcher - 13.12.2011, 14:20
Re: Allways 1hp - by DonWade - 13.12.2011, 15:10
Re: Allways 1hp - by Sascha - 13.12.2011, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)