-RESOLVED-
#2

Hi,

Try this instead:
pawn Код:
forward DeathSystem();
public DeathSystem()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      new Float:health;
      GetPlayerHealth(i, health);
      if(health < 10)
      {
        if(IsPlayerInAnyVehicle(i))
        {
          RemovePlayerFromVehicle(i);
        }
        TogglePlayerControllable(i, 0);
        ApplyAnimation( i, "INT_HOUSE", "BED_Loop_R", 4.0, 1, 0, 0, 0, 0 );
        ApplyAnimation( i, "INT_HOUSE", "BED_Loop_R", 4.0, 1, 0, 0, 0, 0 );
        PulseSystem[i] = 1;
      }
    }
  }
  return 1;
}
I have edited where you had:
pawn Код:
new Float:health;
if(GetPlayerHealth(i, health) < 10)
{...
to:

pawn Код:
new Float:health;
GetPlayerHealth(i, health);
if(health < 10)
{...
I believe that should work now. I also removed the extra code under IsPlayerInAnyVehicle because that should still be called regardless underneath.
Reply


Messages In This Thread
-RESOLVED- - by Lynn - 12.06.2010, 14:58
Re: [HELP] Code Not working. No clue why. - by Chris. - 12.06.2010, 15:06
Re: [HELP] Code Not working. No clue why. - by Lynn - 12.06.2010, 15:09
Re: [HELP] Code Not working. No clue why. - by DJDhan - 12.06.2010, 15:17
Re: [HELP] Code Not working. No clue why. - by yeswecanchange09 - 12.06.2010, 15:20
Re: [HELP] Code Not working. No clue why. - by Lynn - 12.06.2010, 15:37
Re: [HELP] Code Not working. No clue why. - by DJDhan - 12.06.2010, 15:39
Re: [HELP] Code Not working. No clue why. - by Lynn - 12.06.2010, 16:06
Re: -RESOLVED- - by KnooL - 12.06.2010, 17:04
Re: -RESOLVED- - by Lynn - 13.06.2010, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)