Author Topic: Script Vcmp.data - Area  (Read 6497 times)

0 Members and 1 Guest are viewing this topic.

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Script Vcmp.data - Area
« on: September 08, 2008, 07:42:33 am »
If i want a particular sqaure to be named as some property name, then how can i add it. Like when i type !area it shows the area in which im standing at. so how to make like that.

like if i want to make any part of land to be named as per my wish.
I tried co-ordinates but i dunno what to put there actually..

Example:
-213.73,1243.47,163.656,1243.47,163.656,797.605,-213.73,797.605=Prawn-Island
-213.73,797.605,163.656,797.605,163.656,-241.429,-213.73,-241.429=Leaf Links

what are those co-ordinates above ?  x y and z or ?
example: if i want to put area name to a heli-pad as landing spot (just example). which co-ordinates i should put ? The co-ords of corners ? please answer

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Script Vcmp.data - Area
« Reply #1 on: September 08, 2008, 07:18:02 pm »
uh sorry for double post but please answer

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

szostol

  • Guest
Re: Script Vcmp.data - Area
« Reply #2 on: September 08, 2008, 09:44:10 pm »
Yes, I think coords of corrners should be enaguh, you can add hight coord too.

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Script Vcmp.data - Area
« Reply #3 on: September 09, 2008, 11:14:36 am »
Yes, I think coords of corrners should be enaguh, you can add hight coord too.
umm i cant get it to work though..
Suppose :
corner 1 = x, y, z
corner 2 = x, y, z
corner 3 = x, y, z
corner 4 = x, y, z

then what should i add in vcmp data
x, y, z, x, y, z, x, y, z, x, y, z=location  ???

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

Offline AdTec_224

  • Administrator
  • Street Thug
  • *****
  • Posts: 30
    • View Profile
Re: Script Vcmp.data - Area
« Reply #4 on: September 09, 2008, 02:42:59 pm »
This is how to do it if i remember it right: get bottom left corner coords and top right corner coords:



Sorry about the pic :d

then its:

Code: [Select]
X1,Y2,X2,Y2,X2,Y1,X1,Y1=location
Hard to remember now but i think thats how i did it :P

-AdTec_224

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Script Vcmp.data - Area
« Reply #5 on: September 09, 2008, 05:13:58 pm »
okay i will try it out..  :)

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Script Vcmp.data - Area
« Reply #6 on: September 09, 2008, 06:31:40 pm »
unable to get it to work..

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

Offline AdTec_224

  • Administrator
  • Street Thug
  • *****
  • Posts: 30
    • View Profile
Re: Script Vcmp.data - Area
« Reply #7 on: September 09, 2008, 07:50:06 pm »
Just tested the way i said and it works fine for me:

Quote
<KFJBot> [1] [KFJ]AdTec_224: !loc
<KFJBot> Your Location: Bank

and my coords and code:

-901.4593 -352.2603 13.3802 = XY1 (Z not used)
-966.5250 -328.1825 15.5918 = XY2 (Z not used)

Code: [Select]
-901.4593,-328.1825,-966.5250,-328.1825,-966.5250,-352.2603,-901.4593,-352.2603=Bank
remember to add the new location at the top of your location file.

-AdTec_224

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Script Vcmp.data - Area
« Reply #8 on: September 10, 2008, 11:03:08 am »
Just tested the way i said and it works fine for me:

Quote
<KFJBot> [1] [KFJ]AdTec_224: !loc
<KFJBot> Your Location: Bank

and my coords and code:

-901.4593 -352.2603 13.3802 = XY1 (Z not used)
-966.5250 -328.1825 15.5918 = XY2 (Z not used)

Code: [Select]
-901.4593,-328.1825,-966.5250,-328.1825,-966.5250,-352.2603,-901.4593,-352.2603=Bank
remember to add the new location at the top of your location file.

-AdTec_224

hey i forgot to post here that it worked when i added it to top :p
lol thanx for suggesting to add it to top of ini file. But i already experimented it  ;D

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Script Vcmp.data - Area
« Reply #9 on: September 13, 2008, 03:10:16 pm »
but hmm guys if i want 4 or 5 corners then ? or more than 2 corners

if i want to script irregular shaped area.. ?

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..