Jump to content

Possible to set something?


Recommended Posts

Do You Mean Like That?

local isAlpha = false 
addCommandHandler("Alpha", 
    function ( plr ) 
        if isAlpha then 
            setElementAlpha(plr,0) 
                isAlpha = false 
                    else 
                        isAlpha = true 
                            setElementAlpha(plr,255) 
        end 
    end 
) 
         
Link to comment
Do You Mean Like That?

local isAlpha = false 
addCommandHandler("Alpha", 
    function ( plr ) 
        if isAlpha then 
            setElementAlpha(plr,0) 
                isAlpha = false 
                    else 
                        isAlpha = true 
                            setElementAlpha(plr,255) 
        end 
    end 
) 
         

Yes, like how would i set a certains players vip to true/yes?

---the players vip  
       vip = yes  

Link to comment

You can make something like this :

addCommandHandler("givevip", 
    function ( player,cmd,playerd ) 
        local targetPlayer = getPlayerFromName(tostring(playerd)) 
        if not targetPlayer then return outputChatBox("Player Not Found") end 
        if isGuestAccount(getPlayerAccount(targetPlayer)) then return outputChatBox(" * This Player is not registred!",player,255,0,0,true); end 
        local account =  getAccountName(getPlayerAccount(targetPlayer)); 
        if not isObjectInACLGroup ("user."..account, aclGetGroup ( "VIP" ) ) then 
            aclGroupAddObject (aclGetGroup("VIP"),"user."..account); 
            outputChatBox("** You Have Been Give| "..getPlayerName(targetPlayer).." | Vip!",player,0,255,0,true); 
        else 
            aclGroupRemoveObject(aclGetGroup("VIP"),"user."..account); 
            outputChatBox("** You Have Been Remove | "..getPlayerName(targetPlayer).." | Vip!",player,255,0,0,true); 
        end 
    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...