illestiraqi Posted February 24, 2013 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.
iPrestege Posted February 24, 2013 Posted February 24, 2013 isObjectInACLGroup setElementModel "onPlayerLogin"
Castillo Posted February 24, 2013 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.
illestiraqi Posted February 24, 2013 Author Posted February 24, 2013 But I don't know how to make the script.
Castillo Posted February 24, 2013 Posted February 24, 2013 You can try to make it, then you can post here what you tried and we can help you.
illestiraqi Posted February 24, 2013 Author 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?
illestiraqi Posted February 24, 2013 Author 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
iPrestege Posted February 24, 2013 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 )
illestiraqi Posted February 24, 2013 Author 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?
Vision Posted February 24, 2013 Posted February 24, 2013 setElementModel(source,math.random ( 211, 217 ))
Castillo Posted February 24, 2013 Posted February 24, 2013 No, setElementModel has two arguments only: the element, the model.
illestiraqi Posted February 24, 2013 Author 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?
Baseplate Posted February 24, 2013 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
illestiraqi Posted February 24, 2013 Author 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 )
Castillo Posted February 24, 2013 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.
illestiraqi Posted February 24, 2013 Author 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
illestiraqi Posted February 24, 2013 Author Posted February 24, 2013 Can't you try to do it? No I cannot I'm stupid idk how to script!
Castillo Posted February 24, 2013 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.
iPrestege Posted February 25, 2013 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
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