SA-MP Forums Archive
[EASY] Check Players leaving an 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: [EASY] Check Players leaving an area (/showthread.php?tid=74302)



[EASY] Check Players leaving an area - Trooper[Y] - 21.04.2009

Hey Ladies and Gentlemen,
i just want to get an answer to an easy question,because my head burns of getting an answer.

I think,sometimes you cant get it on by yourself...

So, i want to check if a players is NOT in an area, i tried following:
Код:
if(X >= oldxabove && Y <= oldy || Y >= oldyabove && X <= oldx )
(X = PlayerPosition -> X)
(Y = PlayerPosition -> Y)
(oldxabove = Top right Corner of the area) not sure
(oldyabove = Down left corner of the area) not sure

I think my failure is in...
*.the if condition

Hope on your answer,
Trooper

P.S.: Would be even nice to see how you wold detect people leaving an area...


Re: [EASY] Check Players leaving an area - Trooper[Y] - 21.04.2009

No one an idea?
I mean even if you cant script,cant you just check the if-condition pattern?