Jump to content

Remember CheckBox Ticked And Chat Block

Recommended Posts

Well I want The Server/Script Whatever To Remember That The Checkbox Is Ticked When The Player Quits The Server And Joins It Again.

function chatblock() 
    local getguireg = guiGetVisible(register_Window[1]) 
    local getguilogin = guiGetVisible(login_Window[1]) 
    if ( getguireg ) or ( getguilogin ) then 
addEventHandler("onClientChatMessage", root, chatblock) 
addEventHandler("onClientResourceStart", root, 
    local Remembermeh = getElementData(localPlayer, "remember") 
    local Remember = guiCheckBoxGetSelected(login_Checkbox[1], getLocalPlayer()) 
    if ( Remember ) then 
    guiSetText(login_Edit[1], getPlayerName(getLocalPlayer())) 
    setElementData(localPlayer, "remember", remember) 
    elseif ( Remembermeh ) then 
    guiCheckBoxSetSelected(login_Checkbox, true) 
    guiSetText(login_Edit[1], getPlayerName(getLocalPlayer())) 

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