Jump to content

Restrict skins

Recommended Posts

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 
        errMsg( "You are not allowed to use this skin." ) 
addCommandHandler('setskin', setSkinCommand) 
addCommandHandler('ss', setSkinCommand) 

I think it should work.

Link to post
  • 7 months later...

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         

Link to post

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...