Border FS?
#5

Y Less that something else... HE wants that you get killed after 5 sec Ok Add this at GMinit:
pawn Код:
SetTimer("Bounds", 1000, true);
Now add this somewhere in ur script:
pawn Код:
forward Bounds(playerid);
public Bounds(playerid)
{
      if(!IsPlayerInRangeOfPoint(playerid, 180.0, 0.0, 0.0, 0.0))
      {
              SetTimer("Kill", 5000, false);
              return 1;
      }
      return 1;
}
now lets forward the kill thingy and ofcourse make it
pawn Код:
forward Kill(playerid);
public Kill(playerid)
{
      If(IsPlayerInRangeOfPoint(playerid, 180.0, 0.0, 0.0, 0.0))
      {
            return 1; // Do nothing
      }
      else SetPlayerHealth(playerid, 0);
      return 1;
}
Thats it i guess.. UNTESTED!
Edit: change the range coords to your needs!
Reply


Messages In This Thread
Border FS? - by Gooday - 13.01.2012, 15:06
Re: Border FS? - by thimo - 13.01.2012, 15:12
Re: Border FS? - by Gooday - 13.01.2012, 15:21
Re: Border FS? - by Gooday - 13.01.2012, 15:31
Re: Border FS? - by thimo - 13.01.2012, 15:34
Re: Border FS? - by Gooday - 13.01.2012, 15:40
Re: Border FS? - by thimo - 13.01.2012, 15:51
Respuesta: Re: Border FS? - by OPremium - 13.01.2012, 16:46
Respuesta: Re: Border FS? - by OPremium - 13.01.2012, 16:57
Respuesta: Re: Border FS? - by OPremium - 13.01.2012, 17:34

Forum Jump:


Users browsing this thread: 2 Guest(s)