A little help, please
#1

Since people on my server hated people who ran off when they were on low HP,
i got help to make this thing where it updates ever 15 sec if any player is under 6 hp it will then put them in a crack anim, now my problem is the player who is in the crack anim cannot be killed because he is freezed, how can i make so he can't move but people can kill him?
Or is there a way to do when a player dies, they auto get 10 hp and they get into a /crack anim because then people won't complain about they can't kill the target, here is the code for when they crack
Код:
public IsPlayerHealth()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      new Float:health;
      GetPlayerHealth(i, health);
      if(health < 7) // Hvis liv er mindre end 10 sе /cracker du
      {
        ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        TogglePlayerControllable(i, 0);
        IsDying[i] = 1;
      }
    }
  }
  return 1;
}
Reply


Messages In This Thread
A little help, please - by Guso - 03.01.2010, 23:24
Re: A little help, please - by [HiC]TheKiller - 03.01.2010, 23:44
Re: A little help, please - by Guso - 04.01.2010, 00:01

Forum Jump:


Users browsing this thread: 1 Guest(s)