GameZoneX Posted May 25, 2011 Posted May 25, 2011 Hello, Is it possible in game mode play to restrict skin number 211 and 217 because i use them for our staff. People can still take them by using /ss 211/217. Thanks
Jaysds1 Posted May 25, 2011 Posted May 25, 2011 do u have a gui for spawning the players? if you do show me the script for it.
Castillo Posted May 26, 2011 Posted May 26, 2011 He's talking about the freeroam resource, change this on fr_client.lua. nonAllowedSkins = {[211] = true, [217] = true} function setSkinCommand(cmd, skin) skin = skin and tonumber(skin) if skin then if not nonAllowedSkins[skin] then server.setMySkin(skin) fadeCamera(true) closeWindow(wndSpawnMap) closeWindow(wndSetPos) else errMsg( "You are not allowed to use this skin." ) end end end addCommandHandler('setskin', setSkinCommand) addCommandHandler('ss', setSkinCommand) I think it should work.
zer0w Posted January 24, 2012 Posted January 24, 2012 I tried using that script myself, and what it only does is that it gives you a red message saying you may not use this skin.. and the person can still keep using it. Is it missing an cancel event ? errMsg( "You are not allowed to use this skin." ) cancelEvent () -- stop the event from occuring end
mjau Posted January 24, 2012 Posted January 24, 2012 there is a setting in the admin panel just select freeraom the settings then you will find it there
zer0w Posted January 24, 2012 Posted January 24, 2012 I checked nothing in there about disallowing such skins only setskin "false/true"
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