SA-MP Forums Archive
Player Area - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player Area (/showthread.php?tid=129137)



Player Area - deather - 21.02.2010

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


Re: Player Area - Rand_Omar - 22.03.2010

I really don't know how to use OnPlayerUpdate..


Re: Player Area - Torran - 22.03.2010

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


Re: Player Area - marharth - 22.03.2010

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?


Re: Player Area - deather - 22.03.2010

I want the same function.