Jump to content

setskin ID


Annas

Recommended Posts

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

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

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