Jump to content

[LF] Gang War Scripter [Paid/Non-Paid]


Recommended Posts

Hello,

Firstly I would like to Introduce myself. I am Džiugas sixteen years old from Lithuania,Kaunas I am (trying) to make Gang War game mode from scratch. I started making it ~2017-07 main reason for making it was that in MTA:SA most of Gang War game modes is just few turfs without timers too be honest non-sense. But once there was Imperial Network Gang War but still it was not perfect. Now what I can say is:

That in whole time when I play MTA:SA I been on 2good Gang War servers but sadly both died (one not entirely but has ~2players at middle at day)

YnVITkm.png

Now I will talk what I am looking for:

1. Gang script w/ management

  • Gang Creation is done but still needs some fixes for example make it priced, player would need ~10hours playtime in past month too create gang or join, also if player has already in gang he couldn't even access creation and it could be created only in interior that no one would sabotage creation.
  • Gang Ranks & Members

Ranks: Name - Description (Player Count) Time Requirement [Explanation] *Rules

  1. Bauss - Automaticly given rank by creating gang has all permisions (Only 1player)
  2. Vice-President - given by Bauss, can use all commands but not /gang delete and (they) cant kick Bauss from gang (MAX 2player) *has to be >Trial
  3. Veteran - Auto-Rank after player been at gang for 1month
  4. Trusted - Auto-Rank after player been at gang for 1week
  5. Newbie - Auto-Rank after player been at gang for 1day
  6. Trial - lowest rank vanishes after player spends 6hours in gang only thing it can't is Capture zones [Protection for hopping through gangs]

Members

  • Max Players count ~20-30 (Depending on Server player count)
    • Members could use Gang Vehicles *Only if Gang has base if Gang Car would Explode not in Base it would get -1HP Every Vehicle would get 1000HP after purchase for unlimited time until it has HP (Max Land Vehicle count in Base 15 and MAX 5 Mavericks 20 in Total. ( see 2.1)

Spawn Guns

  • Members could also use Spawn Guns that Leaders would buy from Gang Bank as Vehicles it would have HP but with weapons it would be different. ( see 1.1)
  • Members would get Spawn Guns only if they select them in Gang Base in Marker

1.1

dzC9WX0.png

Spoiler

GUIEditor = {
    gridlist = {},
    button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.gridlist[1] = guiCreateGridList(507, 237, 348, 199, false)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Gun", 0.3)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Quantity", 0.3)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Price €", 0.3)
        for i = 1, 7 do
            guiGridListAddRow(GUIEditor.gridlist[1])
        end
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "AK-47", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "4300", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "9000000", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "Grenades", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "2500", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 3, "9300000", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "M4", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "3500", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 3, "12500000", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "Shotty", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "3200", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 3, 3, "43000000", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "Rifle", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "3700", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 4, 3, "53000000", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "AA12", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "1700", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 5, 3, "86000000", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "Sniper", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 6, 2, "2500", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 6, 3, "115000000", false, false)
        guiSetAlpha(GUIEditor.gridlist[1], 0.88)

        GUIEditor.button[1] = guiCreateButton(52, 167, 58, 15, "Buy", false, GUIEditor.gridlist[1])
        GUIEditor.button[2] = guiCreateButton(228, 167, 58, 15, "Cancel", false, GUIEditor.gridlist[1])    
    end
)

 

Gang Bases

  • There are 5 Gang Bases Across Las Venturas.
  • Gang Base could be dominated with at least 4members (About Time I will talk later in Turf section)
  • Leaders could access gang base management by typing /gang base ( see 2.1)
  • Gang Members would ALWAYS re-spawn in GANG Base.

2.1

X7skk7t.png

Spoiler


GUIEditor = {
    radiobutton = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(451, 256, 483, 339, "Gang Management", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.label[1] = guiCreateLabel(10, 28, 73, 15, "Cars (0/15):", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 255, 255, 0)
        GUIEditor.button[1] = guiCreateButton(40, 313, 46, 15, "Buy", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF35FF35")
        GUIEditor.gridlist[1] = guiCreateGridList(40, 49, 174, 253, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicle", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[1], "HP", 0.5)
        for i = 1, 15 do
            guiGridListAddRow(GUIEditor.gridlist[1])
        end
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 6, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 7, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 8, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 9, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 10, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 10, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 11, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 11, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 12, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 12, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 13, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 13, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 14, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[1], 14, 2, "-", false, false)
        GUIEditor.button[2] = guiCreateButton(13, 86, 22, 20, "^", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[2], "default-bold-small")
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF35FF35")
        GUIEditor.button[3] = guiCreateButton(13, 123, 22, 21, "V", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF35FF35")
        GUIEditor.button[4] = guiCreateButton(113, 314, 52, 15, "Destroy", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[4], "default-bold-small")
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE3535")
        GUIEditor.gridlist[2] = guiCreateGridList(282, 49, 176, 90, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[2], "Gun", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[2], "Quantity", 0.5)
        for i = 1, 4 do
            guiGridListAddRow(GUIEditor.gridlist[2])
        end
        guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 0, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 1, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 2, 2, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "-", false, false)
        guiGridListSetItemText(GUIEditor.gridlist[2], 3, 2, "-", false, false)
        GUIEditor.label[2] = guiCreateLabel(256, 28, 36, 15, "Guns:", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 53, 255, 53)
        GUIEditor.button[5] = guiCreateButton(282, 149, 46, 15, "Buy", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[5], "default-bold-small")
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF35FF35")
        GUIEditor.button[6] = guiCreateButton(351, 149, 52, 15, "Destroy", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[6], "default-bold-small")
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE3535")
        GUIEditor.label[3] = guiCreateLabel(256, 205, 66, 15, "Protection:", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[3], 255, 255, 0)
        GUIEditor.radiobutton[1] = guiCreateRadioButton(256, 234, 16, 15, "", false, GUIEditor.window[1])
        guiRadioButtonSetSelected(GUIEditor.radiobutton[1], true)
        GUIEditor.label[4] = guiCreateLabel(282, 234, 187, 15, "Armored Vehicles (150HP) -50M", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[4], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[4], 255, 255, 0)
        GUIEditor.label[5] = guiCreateLabel(332, 205, 137, 15, "", false, GUIEditor.window[1])
        GUIEditor.radiobutton[2] = guiCreateRadioButton(256, 259, 16, 15, "", false, GUIEditor.window[1])
        GUIEditor.radiobutton[3] = guiCreateRadioButton(256, 284, 16, 15, "", false, GUIEditor.window[1])
        GUIEditor.label[6] = guiCreateLabel(282, 259, 187, 15, "Bulletproof Glass -40M", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[6], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[6], 255, 255, 0)
        GUIEditor.label[7] = guiCreateLabel(282, 284, 187, 15, "Vehicle Speedboost 1.5x -120M", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[7], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[7], 255, 255, 0)
        GUIEditor.button[7] = guiCreateButton(256, 313, 46, 15, "Buy", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[7], "default-bold-small")
        guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF1EFF2D")
        GUIEditor.button[8] = guiCreateButton(456, 25, 17, 18, "X", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[8], "default-bold-small")    
    end
)

 

Zone Domination (Turfs)

  • Zone/Base Domination time depends on member count each for example if player 1been in zone for 3Minutes and dies it adds +3Minutes to time but when he gets back it returns to normal
  • Zone payment, Players required to dominate  depends on the size of the zone for example
  1. Small Turfs - 2Players / 4-5Minutes / 70-85K/hour income
  2. Medium Turfs - 3-4Players / 6-8Minutes / 85K-110K/hour income
  3. Big Turfs - 5-6Players / 7-13Minutes / 110K-165K/hour income
  4. Bases - At Least 3Players / 7Minutes.

Time Example  Attack/Defend (Yellow) Time 2:34 (White) Gang Name (Depends on Gang Color)

If Zone isn't owner by any gang there would be no GSF

HPQAXCz.png

Thanks For reading

For Further Info contact me through here /Personal Message / Discord Dziugasc#8903

fc0b01fe10a0b8c602fb0106d8189d9b.png

https://discord.gg/87JAjBr

github.jpg

https://github.com/Dziugasc/SABR

 

Link to comment
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...