SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 11/04/2012, 06:14 PM   #1
clavador
Huge Clucker
 
clavador's Avatar
 
Join Date: Jun 2007
Location: Argentina
Posts: 220
Reputation: 71
Default Player In Line

I need help to solve a mathematical problem, which I'm not very good at.

Look at this graphic:



What I need to do is to detect if the players "steps" on that blue line you see. I can't create a zone because it turns into a square.

I know how to calculate the blue line's length, but I don't know how to detect if the player steps on that line.

Any ideas?
__________________
clavador is offline   Reply With Quote
Reply

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
Player input dialog \n - no new line ATomas Scripting Help 6 07/02/2012 03:40 PM
Detect player in line of viewF SourceCode Scripting Help 0 21/09/2011 01:58 AM
Less line LZLo Help Archive 3 22/12/2010 08:25 PM


All times are GMT. The time now is 07:55 PM.


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