SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 21/04/2009, 02:23 PM   #1
Trooper[Y]
Gangsta
 
Trooper[Y]'s Avatar
 
Join Date: Apr 2009
Posts: 523
Reputation: 18
Default [EASY] Check Players leaving an area

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:
Code:
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...
__________________




Trooper[Y] is offline  
Old 21/04/2009, 03:23 PM   #2
Trooper[Y]
Gangsta
 
Trooper[Y]'s Avatar
 
Join Date: Apr 2009
Posts: 523
Reputation: 18
Default Re: [EASY] Check Players leaving an area

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




Trooper[Y] is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Check A Players Tag? Micko9 Help Archive 21 21/03/2010 11:22 AM
Check all players ini Marshew_DD Help Archive 6 17/11/2009 09:04 PM
player in area.. but not a square area check.?.? Outbreak Help Archive 6 10/02/2009 10:24 AM
Players that keep joining and leaving and joing and leaving...... hipy Server Support 2 26/12/2008 08:38 PM


All times are GMT. The time now is 06:04 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.