PDA

View Full Version : [FilterScript] [FS]ElDiablo's Smart && Friendly && Adavnced area saving system Version 0.1


eldiablo1337
01/02/2008, 12:54 PM
лл Smart area saving system

лл What is it?

Simple as said, Smart area saving system.

Commands:
/Area [Radius][Name]
/AreaEx [Radius][Radius][Name]
Saving system
The commands and the data are being saved in a folder called Areas, and AreasEx
There will be setted:
MinX + MaxX - MinY + MaxY
Player position, where command used from
A ready IsPlayerInArea() with the details
A ready teleport line, with the positions
A ready command line, named "/teleport"
A ready SetPlayerWorldBounds()
A ready GangZoneCreate()
A ready K_CreateZone()
A ready PayPlayerInArea()
What is it for?
Ever saw:

I dont know how to make this!



I have the positions, but how do i use and save?



How do i get positions, where do i go?


This system, making a TOTAL end for these posts.
With simple format, and a big scritping, the friendly easy area usage is READY

All you need to do, is move your ass and type /Area [] !

So, we want a DM area? Safe Zone area?
Here is the zone:

============
| |
| |
| |
| |
| |
============

More than half, doesnt know how to do this, where to save positions, where to put them.
SO? Just get in the middle of the area, and be:

============
| |
| |
| HERE! |
| |
| |
============

Then type /Area [Radius][Name]

Radius, is the all the place which is in the area, as more as its big, the bigger the area.
Everything is equal>


x
============
| |
| |
y | | y
| |
| |
============
x

x = y;
y = x;

Now, before saying this:

"OMG, WHY?! I want to do an area for payment in the Pirate Ship! SHIT THIS CANT HELP ME!"

Look at the /AreaEx command, which is made for this especially.

When using /AreaEx [Radius][Radius], you choose this:

x2
============
| |
| |
y1 | | y2
| |
| |
============
x1

Distance between x1 to x2, y1 to y2.
No, its not complicated, one command, easy usage:

So, there are two radius variables aight?

/AreaEx [Radius][Radius]

The first Radius variable, is making your sides bigger, while the second one,
Making your ass being fat && looking forward.

Example:

/AreaEx 4 8 [Name]

Will make something like this:

8
============
| |
| ^ |
| ^ |
| ^ |
4 | Face | 4
| |
| Ass |
| v |
| v |
| |
============
8

When doing /AreaEx 8 4 [Name]

Will make something like this:

4
====================
| ^ |
| Face |
8 | | 8
| Ass |
| v |
====================
4

So, you start to understand how easy is this?


"But how the hell am i know which radius will do which distance?"


WAIT! I havnt finished!

When doing the area, it will create an object with an arrow, in each side for 10 seconds
To show you exactly the area, so you know if it matches your thoughts.

Wanna see example? :>

/Area 4 4 - Click me (http://eldiablo_1337.extra.hu/Pictures/Unsigned/gtasa-20060312-142327.png)
/AreaEx 8 4 - Click me (http://eldiablo_1337.extra.hu/Pictures/Unsigned/gtasa-20060312-142430.png)

Note: the objects are not in the corner, but in the middle of each parameter.
Here you can see where the objects being showed:

Here
====================
| |
| |
Here | | Here
| |
| |
| |
====================
Here

After i've type /area [Parameters] look what the nice file gave me:

==Details==

====
Min x: 1475.640625
-
Max x: 1479.640625
-
Min y: 1577.372436
-
Max y: 1581.372436
====

==IsPlayerInArea==

====
IsPlayerInArea(playerid, 1475.640625, 1479.640625, 1577.372436, 1581.372436)
====

==WorldBounds==

====
SetPlayerWorldBounds(playerid, 1479.640625, 1475.640625, 1581.372436, 1577.372436)
====

==Position==

====
Player Position X: 1477.640625
-
Player Position Y: 1579.372436
-
Player Position Z: 10.812500
-
(1477.640625, 1579.372436, 10.812500)
====

==Command==

====
if(strcmp(cmdtext, "/teleport", true) == 0)
{
SetPlayerPos(playerid, 1477.640625, 1579.372436, 10.812500);
return true;
}
====

==K_ZoneSystem==

====
K_CreateZone(AreaName[], 1475.640625, 1577.372436, 1479.640625, 1581.372436, 0x00ffffff)
====

==GangZoneCreate==

====
GangZoneCreate(1475.640625, 1577.372436, 1479.640625, 1581.372436)
====

==PayPlayerInArea==

====
PayPlayerInArea(playerid, 1475.640625, 1479.640625, 1577.372436, 1581.372436, Money)
====


Now, i've just proved its the best you can find, waiting for your comments!

NOTE:To use this, get in the .pwn, and go to line 156 where you see the "#define AllowedUsing",
There, change the name "ElDiablo" to your name, with the quotes ofcourse, and you will be able to use.

лл How to install:

Extract the rar into your server folder, and read the 'read me' file
I mean, READ IT, every bug you could have report about, is told there how to prevent


лл Download:

Version 0.1 A FTP SERVER: Click me (http://eldiablo_1337.extra.hu/Scripts/ElDIablo's_1337.AreaSystem%20Version;%200.1%20.rar )
Version 0.2 A FTP SERVER: Click me (http://eldiablo_1337.extra.hu/Scripts/ElDIablo's_1337.AreaSystem%20Version;%200.2.rar)
Version 0.3 A FTP SERVER: Click me (http://eldiablo_1337.extra.hu/Scripts/ElDIablo's_1337.AreaSystem%20Version;%200.3.rar)
Version 0.4 A FTP SERVER: Click me (http://eldiablo_1337.extra.hu/Scripts/ElDIablo's_1337.AreaSystem%20Version;%200.4.rar)
Version 1.0 A FTP SERVER: Click me (http://eldiablo_1337.extra.hu/Scripts/ElDIablo's_1337.AreaSystem%20Version;%201.0%20A.ra r)

UPDATE 0.2:
New format, while saving the area, you get also a ready usage of SetPlayerWorldBounds,
You can re-download by wish, no other changes, have fun using it ! :>

UPDATE 0.3:
New format, while saving the area, you get also a ready usage of a command,
You can re-download by wish, no other changes, have fun using it ! :>

UPDATE 0.4:
New format, while saving the area, you get also a ready usage of a K_ZoneSystem(), and a GangZoneCreate()!
You can re-download by wish, no other changes, have fun using it ! :>

UPDATE 1.0:
New format, while saving the area, you get also a ready usage of a PayPlayerInArea function!
You can re-download by wish, no other changes, have fun using it ! :>

R@f
01/02/2008, 01:26 PM
nice script and post :D i will try your FS now ;)

R@f

Numhaken
01/02/2008, 01:26 PM
Wow really nice, do you want a mirror?

Grove
01/02/2008, 01:33 PM
The readme link is broken lol

Nice script

Oh, and you should add .rar to the uploaded file. at first I didn't quite get what the file type was

eldiablo1337
01/02/2008, 01:41 PM
Wow really nice, do you want a mirror?


I already have my FTP Mirror, but i wont mind for an other one, thank you.


The readme link is broken lol

Nice script

Oh, and you should add .rar to the uploaded file. at first I didn't quite get what the file type was


1) Fixed
2) Thank you :>
3) Its the second time you tell me this, i dont know what you see
But for me, the .rar is the last format, so its a rar file, download and see.

Have fun using it :]

Grove
01/02/2008, 01:46 PM
Ok, I guess my pc just sucks 8)

Nice script though, very useful.

Antironix
01/02/2008, 02:05 PM
Adavnced --> Advanced.

I will definatly use this when i need to get some areas.
Because
More than half, doesnt know how to do this, where to save positions, where to put them.

i'm one of them :P.

eldiablo1337
01/02/2008, 03:02 PM
Adavnced --> Advanced.

I will definatly use this when i need to get some areas.
Because
More than half, doesnt know how to do this, where to save positions, where to put them.

i'm one of them :P.


LOL, Now you see this is realy necassery for a lot of people, if every one would see this,
No more posts about this subject ^^

Bad mistake of me, about the advanced, i wrote fasly probably..

Joske_Vermeulen
01/02/2008, 03:08 PM
to see/check the radius thing use gangzones, it's much easyer 8)

eldiablo1337
01/02/2008, 03:10 PM
Thought of that, but you can see this in the mini map, which is small,
Or through the big map, but hard to see the little details, unless you make big areas, like
all DMV zone.. which is indented in the map by lines which are walls..

pati
01/02/2008, 03:34 PM
i have download it but it isnt an pwn oder amx

Grove
01/02/2008, 03:46 PM
Its a rar file. Rename the downloaded file to area.rar or somthing with .rar on the end.

DaKa
01/02/2008, 04:29 PM
Thats an excellent script , thanks

At350z
01/02/2008, 05:53 PM
Wow great script, this helped me making the safe zone that i asked you to help me yesturday ;]

eldiablo1337
01/02/2008, 05:57 PM
Thats one of the reason ive made this script, in the post you can see how i make quotes
Of people who need help in area, with a lot of differnt questions, this solves all !

Carlos_Leone
01/02/2008, 07:52 PM
i keep getting this damn message "ERROR: Your not allowed to use this !"

Even when im logged into rcon.. any help? :roll:

eldiablo1337
01/02/2008, 07:56 PM
OMG, I forgot it !

Im sorry, ok, look get in the script, and go to line 156, if you havnt deleted anythings,
You'll see the line called:

#define AllowedUsing, in the quotes, put in your name, now its setted to

#define AllowedUsing "ElDiablo"

Which is my name, change it to your name, which you use in game, and it will work :>

Carlos_Leone
01/02/2008, 08:03 PM
Hehe no problem.. was just getting a little frustrated with it :D .. Nice btw :idea:

eldiablo1337
01/02/2008, 08:12 PM
Thank you, have fun using it and save your time :P

Grove
01/02/2008, 08:14 PM
Lol this is really useful, not just so much for building the function, but for gathering co-ords aswell!

eldiablo1337
01/02/2008, 08:16 PM
Ofcourse, this is the point of this script,
If i wouldnt be thinking of how to gather it, i would just make a tutorial for people,
But with this script, you dont do NOTHING, the script does that for you :]

Most importent: Thank you ^^

eldiablo1337
01/02/2008, 08:57 PM
UPDATE!!!

Version 0.2 A:

Added a format of SetPlayerWorldBounds, go to the first page to download, Have fun !

eldiablo1337
01/02/2008, 10:26 PM
UPDATE!!!

Version 0.3 A:

Added a format of a ready command with the cordinations, go to the first page to download, Have fun !

eldiablo1337
02/02/2008, 12:39 AM
Wow, you realy like colors, dont you? every post > new color :\

Anyway, thanks, I know that, it will surely do that.

eldiablo1337
05/02/2008, 10:00 PM
UPDATE!!!

Version 0.4 A:

Added:

1] A ready format of K_CreateZone(), From the Klowaski's system (K_ZoneSystem)
2] A ready format of GangZoneCreate().

You can download through main page!

The new look of the file, which the data being saved INTO:

Typed "/area", look what the nice file gave him!



==Details==

====
Min x: 1475.640625
-
Max x: 1479.640625
-
Min y: 1577.372436
-
Max y: 1581.372436
====

==IsPlayerInArea==

====
IsPlayerInArea(playerid, 1475.640625, 1479.640625, 1577.372436, 1581.372436)
====

==WorldBounds==

====
SetPlayerWorldBounds(playerid, 1479.640625, 1475.640625, 1581.372436, 1577.372436)
====

==Position==

====
Player Position X: 1477.640625
-
Player Position Y: 1579.372436
-
Player Position Z: 10.812500
-
(1477.640625, 1579.372436, 10.812500)
====

==Command==

====
if(strcmp(cmdtext, "/teleport", true) == 0)
{
SetPlayerPos(playerid, 1477.640625, 1579.372436, 10.812500);
return true;
}
====

==K_ZoneSystem==

====
K_CreateZone(AreaName[], 1475.640625, 1577.372436, 1479.640625, 1581.372436, 0x00ffffff)
====

==GangZoneCreate==

====
GangZoneCreate(1475.640625, 1577.372436, 1479.640625, 1581.372436)
====

Abhishek
06/02/2008, 03:45 AM
Really Helpful for beginners :D

eldiablo1337
06/02/2008, 04:09 AM
I guess for you aswell, Thank you :]

eldiablo1337
07/02/2008, 09:53 PM
Recently i see a lot of


I want a player to recive money in an area



How can i pay someone when being in my zone?


THEN, I remember the function, and ofcourse, added it to my Area System, Enjoy!.

NOTE: IsPlayerInArea && PayPlayerInArea are included in my script,
Because your might be look different (other format of min x / max x).
Credits to who ever made these functions

(I assume IsPlayerInArea >> Y_Less, PayPlayerInArea >> The_Don?, Just assuming!)

UPDATE!!!

Version 1.0 A:

Added:

1] A ready format of PayPlayerInArea() function.

You can download through main page!

The new look of the file, which the data being saved INTO:

Typed "/area", look what the nice file gave him!


==Details==

====
Min x: 1475.640625
-
Max x: 1479.640625
-
Min y: 1577.372436
-
Max y: 1581.372436
====

==IsPlayerInArea==

====
IsPlayerInArea(playerid, 1475.640625, 1479.640625, 1577.372436, 1581.372436)
====

==WorldBounds==

====
SetPlayerWorldBounds(playerid, 1479.640625, 1475.640625, 1581.372436, 1577.372436)
====

==Position==

====
Player Position X: 1477.640625
-
Player Position Y: 1579.372436
-
Player Position Z: 10.812500
-
(1477.640625, 1579.372436, 10.812500)
====

==Command==

====
if(strcmp(cmdtext, "/teleport", true) == 0)
{
SetPlayerPos(playerid, 1477.640625, 1579.372436, 10.812500);
return true;
}
====

==K_ZoneSystem==

====
K_CreateZone(AreaName[], 1475.640625, 1577.372436, 1479.640625, 1581.372436, 0x00ffffff)
====

==GangZoneCreate==

====
GangZoneCreate(1475.640625, 1577.372436, 1479.640625, 1581.372436)
====

==PayPlayerInArea==

====
PayPlayerInArea(playerid, 1475.640625, 1479.640625, 1577.372436, 1581.372436, Money)
====

cmg4life
15/02/2008, 08:47 AM
i bearly saw it... neat !

ConTron
25/02/2008, 05:21 PM
You forgot the .zip extension for the v1.0 download :lol:

FujiNNN
25/02/2008, 07:33 PM
Very nice!

downloading!

eldiablo1337
25/02/2008, 11:15 PM
cmg4life ]
i bearly saw it... neat !


:]

ConTron ]
You forgot the .zip extension for the v1.0 download :lol:


Pay attention, there is a *.rar extension.


Very nice!

downloading!


Thanks! have fun using it :]

Street_King
31/01/2010, 10:35 AM
Nice i try late ;)