[Only works for id 0]
#3

Try this:
Код:
public HeightCheck(playerid)
{
  new Float:x, Float:y, Float:z;
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    GetPlayerPos(i,x,y,z);
    if(z < 90)
    {
      SetPlayerHealth(i,0.0);
    }
  }
  return 1;
}
And as for the dying when you spawn, well your probably spawning somewhere in an interior, all interior floors are way up in the air... So your most likely above the 90 z limit. Try changing your spawning point to somewhere else or raising your z limit cuz this is gonna kill you every time you enter an interior because you will be way above 90 z when your inside one.
Reply


Messages In This Thread
[Only works for id 0] - by Doppeyy - 16.01.2010, 15:40
Re: [Only works for id 0] - by MadeMan - 16.01.2010, 15:45
Re: [Only works for id 0] - by SuperS82 - 16.01.2010, 15:48
Re: [Only works for id 0] - by Doppeyy - 16.01.2010, 17:02

Forum Jump:


Users browsing this thread: 2 Guest(s)