Can't figure it out
#8

pawn Код:
forward Health();

public OnFilterScriptInit()
{
  SetTimer("Health", 1000, 1);
  return 1;
}

public Health()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      new Float:health;
      GetPlayerHealth(i, health);
      if(health < 40)
      {
        ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        SendClientMessage(i, COLOR_RED, "You have been wounded, you need a paramedic !");
      }
    }
  }
  return 1;
}
Try that.
Reply


Messages In This Thread
Can't figure it out - by L30 - 07.06.2009, 10:37
Re: Can't figure it out - by Weirdosport - 07.06.2009, 10:39
Re: Can't figure it out - by yom - 07.06.2009, 10:40
Re: Can't figure it out - by L30 - 07.06.2009, 10:44
Re: Can't figure it out - by dice7 - 07.06.2009, 10:47
Re: Can't figure it out - by Weirdosport - 07.06.2009, 10:49
Re: Can't figure it out - by L30 - 07.06.2009, 10:55
Re: Can't figure it out - by Gappy - 07.06.2009, 11:14
Re: Can't figure it out - by L30 - 07.06.2009, 11:23
Re: Can't figure it out - by L30 - 07.06.2009, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)