[FilterScript] [FS]ElDiablo's Smart && Friendly && Adavnced area saving system Version 0.1
#1

  • «« 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:
      Quote:

      I dont know how to make this!

      Quote:

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

      Quote:

      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?

        Quote:

        "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
        /AreaEx 8 4 - Click me

        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:
        Quote:

        ==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: 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 ! :>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)