Annas Posted August 29, 2015 Share Posted August 29, 2015 hello, i wish you understand what i wish for .. i wanna simple script for (if getElementData"vipTime") then able to use command : /vipskin ID , ID = any skin id he wish to .. like , /vipskin 0 (then he will set CJ skin) , and if he use /vipskin 271 then return end .. (blocked it) Link to comment
JR10 Posted August 29, 2015 Share Posted August 29, 2015 You actually wrote parts of that script in your post. So why didn't you try something first? addCommandHandler('vipskin', function(player, _, skin) skin = tonumber(skin) if (not skin or skin == 271) then return end if (not getElementData(player, "vipTime")) then return end setElementModel(player, skin) end) Link to comment
Noki Posted August 30, 2015 Share Posted August 30, 2015 addCommandHandler("vipskin", function(player, _, skin) skin = tonumber(skin) if (not skin or skin == 271 or skin < 0 or skin > 300) then return end -- I think 300 is the highest ID if (not getElementData(player, "vipTime")) then return end setElementModel(player, skin) 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