• [QWERSTRICTION]
    2 replies, posted
Hello,i want to show you my first addon. This is [QWERSTRICTION] weapon restriction and weapon loadout addon for server owners. ULX admin mod recommended for DComboBox for ulx groups but it works without ulx. ------USAGE---------------------------- You must to be superadmin. Type to console "qwerstriction" or better bind p qwerstriction. Write in chat !qwerst for menu open ---------------------------------------- Description section: 1) Weapons In this section you can add weapons to ban list for each group. The biggest button inserts all weapons that you have. Just press the weapon name and group in inset "remove Weapon" to clear the panel and ban list. [IMG]http://puu.sh/hRXOA.jpg[/IMG] ------------------------------------- [IMG]http://puu.sh/hRXPr.jpg[/IMG] 2) Loadout Loadout- default weapons after player spawn. in this section you can add custom loadouts and BIG button inherits,that mean you can add many weapons by pressing 1 click. Also you can set ammo for weapons and groups(group should be in loadout) [IMG]http://puu.sh/hRXQk.jpg[/IMG] -------------------------------------------- [IMG]http://puu.sh/hRXQT.jpg[/IMG] 3) Entities- Ban entities list from Q menu i think i will not to describe you how to work with it,its easy. [IMG]http://puu.sh/hRXR4.jpg[/IMG] 4) Toolgun Ban toolgun things for each group. There is a button named "tool name" that can help you if you can't find tool name. [IMG]http://puu.sh/hRXRf.jpg[/IMG] 5) NPC Just set limit and ban npc class for each group. [IMG]http://puu.sh/hRXRQ.jpg[/IMG] 6) Props Just set limit and ban model props for each group. 7) Ragdoll Just set limit and ban model ragdolls for each group. 8) Vehicles Just set limit and ban class of vehicle(car) for each group. DOWNLOAD LINKS Workshop [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=442284822"]http://steamcommunity.com/sharedfiles/filedetails/?id=442284822[/URL] github [URL="https://github.com/Seal13581/qwerstriction/tree/master"]https://github.com/Seal13581/qwerstriction/tree/master[/URL]
Nice
Your code is full of unnecessary file reading calls and pretty terrible overall, but pretty good gui at least. Like what the hell. Read the file once and store the data in a global. [lua] local function Checkabyz() /// if !file.Exists("qwerstriction/weapon.txt","DATA") then return end /// local List=util.KeyValuesToTable(file.Read("qwerstriction/weapon.txt","DATA")) /// for k,v in pairs(player.GetAll()) do /// for n,s in pairs(List) do /// for i=1,#s do /// if v:IsUserGroup(n) && v:HasWeapon(s[i]) then /// v:StripWeapon(s[i]) /// end /// end /// end /// end /// end /// hook.Add("Tick","CheckAbyzz",Checkabyz) [/lua]
Sorry, you need to Log In to post a reply to this thread.