CountDown for players in range
#5

Quote:
Originally Posted by Jefff
Код:
//Top
new Float:Pos[3];
//in command
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);

//in public
for(new i,g=GetMaxPlayers(); i < g; i ++)
{
  if(IsPlayerConnected(i))
  {
    if(IsPlayerInRangeOfPoint(i,/*range*/20.0,Pos[0],Pos[1],Pos[2])) // you will have to get x y and z by yourself... use GetPlayerPos
    {
      // your code to show the the textdraw, remeber that playerid is now i
    }
  }
}
Thank you

Will try this when im at home.
Reply


Messages In This Thread
CountDown for players in range - by juuleman - 25.03.2010, 17:49
Re: CountDown for players in range - by Miguel - 25.03.2010, 17:58
Re: CountDown for players in range - by juuleman - 25.03.2010, 18:01
Re: CountDown for players in range - by Jefff - 25.03.2010, 19:04
Re: CountDown for players in range - by juuleman - 26.03.2010, 09:32

Forum Jump:


Users browsing this thread: 8 Guest(s)