Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- enable buybot.
- menu.add_check_box("Enable BuyBot")
- -- weapons to buy.
- menu.add_combo_box("Rifle", {"None", "Scout", "AWP", "Auto"})
- menu.add_combo_box("Pistol", {"None", "Elite", "Deagle/Revolver"})
- menu.add_combo_box("Other", {"None", "Nades & Gear"})
- -- buy when round start.
- events.register_event("round_start", function()
- if menu.get_bool("Enable BuyBot") then
- if menu.get_int("Rifle") == 1 then
- console.execute("buy ssg08")
- elseif menu.get_int("Rifle") == 2 then
- console.execute("buy awp")
- elseif menu.get_int("Rifle") == 3 then
- console.execute("buy scar20")
- end
- if menu.get_int("Pistol") == 1 then
- console.execute("buy elite")
- elseif menu.get_int("Pistol") == 2 then
- console.execute("buy deagle")
- end
- if menu.get_int("Other") == 1 then
- console.execute("buy vest")
- console.execute("buy vesthelm")
- console.execute("buy smokegrenade")
- console.execute("buy hegrenade")
- console.execute("buy molotov")
- console.execute("buy defuser")
- console.execute("buy taser")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement