Help me please
#2

Use PAWN tags next time.

Try this, also make sure the function is actually being called.
pawn Код:
public Health()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      if(gPlayerSpawned == 1)
      {
        new Float:health;
        GetPlayerHealth(i, health);
       
              if(health < 30)
        {
                    if(IsPlayerInAnyVehicle(i))
                    {
                        RemovePlayerFromVehicle(i);
                        ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                        GameTextForPlayer(i, "~r~Voce esta morrendo chame um medico !", 5000, 3);
          }
                    else
                    {
                    ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
          GameTextForPlayer(i, "~r~Voce esta morrendo chame um medico !", 5000, 3);
                    }
        }
      }
    }
  }
  return 1;
}
Reply


Messages In This Thread
Help me please - by igorpk13 - 21.02.2010, 05:19
Re: Help me please - by Born2die - 21.02.2010, 07:43
Re: Help me please - by igorpk13 - 21.02.2010, 17:14

Forum Jump:


Users browsing this thread: 3 Guest(s)