Geting center position of gtasa map
#6

Alright, well after allot of testing I finally got it, I looked at some live map scripts which also helped.

So this is the code that works:

Код:
      Xpos = (-(((e.X * -1) + (pictureBox.Width / 2)) / 2) * (pictureBox.Width / (pictureBox.Width / 2)));
      Ypos = ((((e.Y * -1) + (pictureBox.Height / 2)) / 2) * (pictureBox.Height / (pictureBox.Height / 2)));
Now, I need to figure out how to get the mouse pos to read in decimals, eg 3223.4322 instead of just 3223.
Reply


Messages In This Thread
Geting center position of gtasa map - by StrickenKid - 29.08.2009, 04:08
Re: Geting center position of gtasa map - by XPlatform - 29.08.2009, 06:22
Re: Geting center position of gtasa map - by [MM]Murphy - 29.08.2009, 12:37
Re: Geting center position of gtasa map - by Westie - 29.08.2009, 13:24
Re: Geting center position of gtasa map - by StrickenKid - 29.08.2009, 15:33
Re: Geting center position of gtasa map - by StrickenKid - 30.08.2009, 04:15
Re: Geting center position of gtasa map - by Westie - 30.08.2009, 08:36
Re: Geting center position of gtasa map - by StrickenKid - 30.08.2009, 14:47
Re: Geting center position of gtasa map - by StrickenKid - 30.08.2009, 15:16
Re: Geting center position of gtasa map - by Redirect Left - 30.08.2009, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)