Player Area
#1

How do i check a player's area? If he isnt in that area it must spawn him in another position!

I tried with onplayerupdate and the code:

Код:
if(!IsPlayerInArea(playerid, -234.8402,105.4832,-171.2079,-101.6946))
{
	SetPlayerPos(playerid,tdm2att[rand][0],tdm2att[rand][1],tdm2att[rand][2]);
}
But it isnt working how i needed
Reply
#2

I really don't know how to use OnPlayerUpdate..
Reply
#3

Quote:
Originally Posted by ʂylaɾ
I really don't know how to use OnPlayerUpdate..
Dont post if you dont know whats wrong

Check your coords.. Are you sure that there correct?
As i thought mine were correct once but they werent
Reply
#4

Shouldn't that be the other way around?

Aren't you checking to see if the player is outside of the area, and if he is it would tp him back?
Reply
#5

I want the same function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)