5150 Posted September 16, 2015 Author Share Posted September 16, 2015 nothing. i type refresh and nothing happens. it just shows the word "refresh" typed out, like normal when you type something into console Link to comment
JR10 Posted September 16, 2015 Share Posted September 16, 2015 Can you start the resource? What does it output when you start it? Link to comment
5150 Posted September 16, 2015 Author Share Posted September 16, 2015 it doesnt even load is what im saying. i put all the files into a zip, put the zip into deathmatch/resources, and typed the "refresh" command in console, but when i refresh, it does nothing Link to comment
Tete omar Posted September 16, 2015 Share Posted September 16, 2015 Alright, let's make this practical. I have made a resource and set everything up for you. Download this resource: https://www.dropbox.com/s/2piviqi6n5oqn ... e.zip?dl=0 and place it in server/mods/deathmatch/resources/[gameplay]. Refresh and see if it loads. Link to comment
5150 Posted September 16, 2015 Author Share Posted September 16, 2015 yes this works just fine. im not sure what happened, or what i did wrong. now can i just delete the test gate script and add the "ss" script? because thats the important one. or will it mess it up? Link to comment
Tete omar Posted September 16, 2015 Share Posted September 16, 2015 Glad to hear that! Yes you can replace the gate script with the /ss script. If you want to know what was wrong, compare it to yours to see the difference. Link to comment
5150 Posted September 16, 2015 Author Share Posted September 16, 2015 ok man. thanks so much! the forum always helps Link to comment
5150 Posted September 16, 2015 Author Share Posted September 16, 2015 while i have you here, this is correct? it is suppost to dissallow the default command: /ss (setskin) but keep the skin GUI: local AllowedGroups = { "Admin", "SuperModerator", "Moderator" } addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "ss" then local account = getPlayerAccount(source) local hasPermission if account and not isGuestAccount(account) then local accName = getAccountName(account) for _, groupName in ipairs(AllowedGroups) do local group = aclGetGroup(groupName) if group then if isObjectInACLGroup("user."..accName, group) then hasPermission = true break end end end end if not hasPermission then cancelEvent() end end end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now