illestiraqi Posted February 24, 2013 Share Posted February 24, 2013 In my server the skin Staff Boy and Staff Girl is for everyone, I need a script that will make skin id 211, 217 restricted to users in the Admin acl team and Super Moderators please. Link to comment
iPrestege Posted February 24, 2013 Share Posted February 24, 2013 isObjectInACLGroup setElementModel "onPlayerLogin" Link to comment
Castillo Posted February 24, 2013 Share Posted February 24, 2013 You can also use the event: onElementModelChange to set back to his old skin if he get's one of these restricted skins. Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 But I don't know how to make the script. Link to comment
Castillo Posted February 24, 2013 Share Posted February 24, 2013 You can try to make it, then you can post here what you tried and we can help you. Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 You can try to make it, then you can post here what you tried and we can help you. But what if i fail bad? Link to comment
iPrestege Posted February 24, 2013 Share Posted February 24, 2013 Just try and i'll help you . Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 Just try and i'll help you . I'm Sorry I can't Im toooooooo horrible I can't even make 1 Script of my own! Also theres another script I need witch will be 5x harder than this one Link to comment
iPrestege Posted February 24, 2013 Share Posted February 24, 2013 -- Server Side ( = addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then setElementModel(source,id) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,id) end end ) Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 -- Server Side ( = addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then setElementModel(source,id) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,id) end end ) I see setElementModel(source,id) where the id is thats where I put the model id correct? If so how do I put 2? is it setElementModel(source,211, 217) what i just did is that correct? Link to comment
Vision Posted February 24, 2013 Share Posted February 24, 2013 setElementModel(source,math.random ( 211, 217 )) Link to comment
Castillo Posted February 24, 2013 Share Posted February 24, 2013 No, setElementModel has two arguments only: the element, the model. Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 -- Server Side ( = addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then setElementModel(source,math.random ( 211, 217 )) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,math.random ( 211, 217 )) end end ) Is that correct? Am I done now? Link to comment
Baseplate Posted February 24, 2013 Share Posted February 24, 2013 addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,math.random ( 211, 217 )) end end ) Would be better Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 I tried this and fails. When I go to freeroam>skins>workers>staff girl, and boy lets me take it when im not staff... please fix addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,math.random ( 211, 217 )) end end ) Link to comment
iPrestege Posted February 24, 2013 Share Posted February 24, 2013 That's Should Work. Link to comment
Castillo Posted February 24, 2013 Share Posted February 24, 2013 I tried this and fails. When I go to freeroam>skins>workers>staff girl, and boy lets me take it when im not staff... please fix addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,math.random ( 211, 217 )) end end ) That's why you need to use: onElementModelChange. Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 I tried this and fails. When I go to freeroam>skins>workers>staff girl, and boy lets me take it when im not staff... please fix addEventHandler("onPlayerLogin",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then setElementModel(source,math.random ( 211, 217 )) end end ) That's why you need to use: onElementModelChange. Can you please do that Idk how Link to comment
Castillo Posted February 24, 2013 Share Posted February 24, 2013 Can't you try to do it? Link to comment
illestiraqi Posted February 24, 2013 Author Share Posted February 24, 2013 Can't you try to do it? No I cannot I'm stupid idk how to script! Link to comment
Castillo Posted February 24, 2013 Share Posted February 24, 2013 If you say that, and you don't want to try, then I suggest you to don't even come to this section, because here we help you with your problems, we don't make it for you because you don't want to try to do it. Link to comment
iPrestege Posted February 25, 2013 Share Posted February 25, 2013 If you say that, and you don't want to try, then I suggest you to don't even come to this section, because here we help you with your problems, we don't make it for you because you don't want to try to do it. I'm with Solid Snake +1 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