Problem with IsPlayerInRangeOfPoint
#1

Код:
public OnPlayerConnect(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 247.9066,-79.6243,2.3606)) //Plahvatav Lхks (Katkine Kast)
  {
  SetPlayerHealth(playerid, 100);
  return 1;
  }
  
	return 1;
}
Well heres the code ( no errors )

BUT WHEN I GO TO THE COORDS NOTHING WILL HAPPEN

Help?
Reply
#2

I Tried to add it everywhere

OnPlayerSpawn
OnPlayerConnect
etc...

doesnt work where i add it?
Reply
#3

OnPlayerUpdate or make it a command.
Reply
#4

Thnx
Reply
#5

Or, you could use SetTimer, forward it, and place it as a new callback.
Reply
#6

Quote:
Originally Posted by $ЂЯĢ
OnPlayerUpdate or make it a command.
Hell fucking no.

Use a timer, which checks the position.
Reply
#7

If your going to be doing a lot of areas like this you can use an include.
[INC]Hidden CheckPoint System
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)