problem with public onplayerupdate thing
#6

You can set the health more. Like 100 (full) Example:

pawn Код:
public OnPlayerUpdate(playerid)
{
  new Float:HealthAmount; //done
  GetPlayerHealth(playerid, HealthAmount);

  if(HealthAmount <= 20)
  {
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);
    SetPlayerHealth(playerid, 100);
  }
  return 1;
}
Reply


Messages In This Thread
problem with public onplayerupdate thing - by hardstop - 21.04.2010, 19:06
Re: problem with public onplayerupdate thing - by Nero_3D - 21.04.2010, 19:22
Re: problem with public onplayerupdate thing - by hardstop - 21.04.2010, 19:25
Re: problem with public onplayerupdate thing - by CAR - 21.04.2010, 19:44
Re: problem with public onplayerupdate thing - by hardstop - 21.04.2010, 19:55
Re: problem with public onplayerupdate thing - by CAR - 21.04.2010, 19:58
Re: problem with public onplayerupdate thing - by hardstop - 21.04.2010, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)