Jump to content

Infopanel..


GanJaRuleZ

Recommended Posts

Hai allz , i've been working on a infopanel that can be set writable/readable just in-game ..

But i have some errors ..

Errors :

  
[2012-01-21 21:19:15] WARNING: infopanel\server.lua:2: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] 
[2012-01-21 21:19:15] WARNING: infopanel\server.lua:3: Bad argument @ 'isGuestAccount' [Expected account at argument 1, got boolean] 
[2012-01-21 21:19:15] WARNING: infopanel\server.lua:6: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] 
[2012-01-21 21:19:15] WARNING: infopanel\server.lua:6: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] 
[2012-01-21 21:19:15] ERROR: infopanel\server.lua:7: attempt to concatenate local 'accName' (a boolean value) 

Script :

  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable1", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin1", true ) 
addEventHandler( "admin1", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then      triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable1", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin2", true ) 
addEventHandler( "admin2", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable2", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin3", true ) 
addEventHandler( "admin3", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable2", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin4", true ) 
addEventHandler( "admin4", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable3", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin5", true ) 
addEventHandler( "admin5", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable3", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin6", true ) 
addEventHandler( "admin6", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable4", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin7", true ) 
addEventHandler( "admin7", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable4", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin8", true ) 
addEventHandler( "admin8", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable5", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin9", true ) 
addEventHandler( "admin9", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable5", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin10", true ) 
addEventHandler( "admin10", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable6", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin11", true ) 
addEventHandler( "admin11", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable6", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin12", true ) 
addEventHandler( "admin12", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable7", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin13", true ) 
addEventHandler( "admin13", getRootElement(), adminCheck ) 
  
function adminCheck () 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable7", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin14", true ) 
addEventHandler( "admin14", getRootElement(), adminCheck ) 

P.S : Don't works if i change the thePlayer into source..

Link to comment
function adminCheck (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable1", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin1", true ) 
addEventHandler( "admin1", getRootElement(), adminCheck ) 
  
function adminCheck2 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then      triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable1", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin2", true ) 
addEventHandler( "admin2", getRootElement(), adminCheck2 ) 
  
function adminCheck3 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable2", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin3", true ) 
addEventHandler( "admin3", getRootElement(), adminCheck3 ) 
  
function adminCheck4 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable2", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin4", true ) 
addEventHandler( "admin4", getRootElement(), adminCheck4 ) 
  
function adminCheck5 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable3", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin5", true ) 
addEventHandler( "admin5", getRootElement(), adminCheck5 ) 
  
function adminCheck6 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable3", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin6", true ) 
addEventHandler( "admin6", getRootElement(), adminCheck6 ) 
  
function adminCheck7 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable4", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin7", true ) 
addEventHandler( "admin7", getRootElement(), adminCheck7 ) 
  
function adminCheck8 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable4", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin8", true ) 
addEventHandler( "admin8", getRootElement(), adminCheck8 ) 
  
function adminCheck9 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable5", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin9", true ) 
addEventHandler( "admin9", getRootElement(), adminCheck9 ) 
  
function adminCheck10 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable5", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin10", true ) 
addEventHandler( "admin10", getRootElement(), adminCheck10 ) 
  
function adminCheck11 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable6", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin11", true ) 
addEventHandler( "admin11", getRootElement(), adminCheck11 ) 
  
function adminCheck12 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable6", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin12", true ) 
addEventHandler( "admin12", getRootElement(), adminCheck12 ) 
  
function adminCheck13 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable7", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin13", true ) 
addEventHandler( "admin13", getRootElement(), adminCheck13 ) 
  
function adminCheck14 (thePlayer) 
local account = getPlayerAccount ( thePlayer ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable7", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin14", true ) 
addEventHandler( "admin14", getRootElement(), adminCheck14 ) 

Who is element 'thePlayer' ? :S

I've not tested it but it should work D:

Link to comment

'thePlayer' is nil.

function adminCheck ( ) 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable1", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin1", true ) 
addEventHandler( "admin1", getRootElement(), adminCheck ) 
  
function adminCheck2 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then      triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable1", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin2", true ) 
addEventHandler( "admin2", getRootElement(), adminCheck2 ) 
  
function adminCheck3 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable2", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin3", true ) 
addEventHandler( "admin3", getRootElement(), adminCheck3 ) 
  
function adminCheck4 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable2", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin4", true ) 
addEventHandler( "admin4", getRootElement(), adminCheck4 ) 
  
function adminCheck5 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable3", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin5", true ) 
addEventHandler( "admin5", getRootElement(), adminCheck5 ) 
  
function adminCheck6 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable3", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin6", true ) 
addEventHandler( "admin6", getRootElement(), adminCheck6 ) 
  
function adminCheck7 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable4", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin7", true ) 
addEventHandler( "admin7", getRootElement(), adminCheck7 ) 
  
function adminCheck8 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable4", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin8", true ) 
addEventHandler( "admin8", getRootElement(), adminCheck8 ) 
  
function adminCheck9 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable5", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin9", true ) 
addEventHandler( "admin9", getRootElement(), adminCheck9 ) 
  
function adminCheck10 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable5", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin10", true ) 
addEventHandler( "admin10", getRootElement(), adminCheck10 ) 
  
function adminCheck11 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable6", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin11", true ) 
addEventHandler( "admin11", getRootElement(), adminCheck11 ) 
  
function adminCheck12 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable6", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin12", true ) 
addEventHandler( "admin12", getRootElement(), adminCheck12 ) 
  
function adminCheck13 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setWritable7", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin13", true ) 
addEventHandler( "admin13", getRootElement(), adminCheck13 ) 
  
function adminCheck14 () 
local account = getPlayerAccount ( source ) 
    if isGuestAccount ( account ) then 
        triggerClientEvent ( "loginRequired", getRootElement()) 
        else 
        local accName = getAccountName ( getPlayerAccount ( source ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        triggerClientEvent ( "setReadable7", getRootElement()) 
        else 
        triggerClientEvent ( "justAdmins", getRootElement()) 
        end 
    end 
end 
addEvent( "admin14", true ) 
addEventHandler( "admin14", getRootElement(), adminCheck14 ) 

Link to comment
  
infoPanel = guiCreateWindow(168,158,508,344,"F1 - Info",false) 
tabPanel = guiCreateTabPanel(9,20,490,315,false,infoPanel) 
tab1 = guiCreateTab("Tab",tab1) 
memo1 = guiCreateMemo(5,7,476,262,"",false,tab1) 
label1 = guiCreateLabel(11,271,50,16,"Editable :",false,tab1) 
label2 = guiCreateLabel(63,271,48,14,"",false,tab1)) 
button1 = guiCreateButton(123,269,61,19,"Write",false,tab1) 
button2 = guiCreateButton(186,270,60,18,"Read",false,tab1) 
tab2 = guiCreateTab("Tab",tabPanel) 
memo2 = guiCreateMemo(5,7,476,262,"",false,tab2) 
label3 = guiCreateLabel(11,271,50,16,"Editable :",false,tab2) 
label4 = guiCreateLabel(63,271,48,14,"",false,tab2) 
button3 = guiCreateButton(123,269,61,19,"Write",false,tab2) 
button4 = guiCreateButton(186,270,60,18,"Read",false,tab2) 
tab3 = guiCreateTab("Tab",tabPanel) 
memo3 = guiCreateMemo(5,7,476,262,"",false,tab3) 
label5 = guiCreateLabel(11,271,50,16,"Editable :",false,tab3) 
label6 = guiCreateLabel(63,271,48,14,"",false,tab3) 
button5 = guiCreateButton(123,269,61,19,"Write",false,tab3) 
button6 = guiCreateButton(186,270,60,18,"Read",false,tab3) 
tab4 = guiCreateTab("Tab",tabPanel) 
memo4 = guiCreateMemo(5,7,476,262,"",false,tab4) 
label7 = guiCreateLabel(11,271,50,16,"Editable :",false,tab4) 
label8 = guiCreateLabel(63,271,48,14,"",false,tab4) 
button7 = guiCreateButton(123,269,61,19,"Write",false,tab4) 
button8 = guiCreateButton(186,270,60,18,"Read",false,tab4) 
tab5 = guiCreateTab("Tab",tabPanel) 
memo5 = guiCreateMemo(5,7,476,262,"",false,tab5) 
label9 = guiCreateLabel(11,271,50,16,"Editable :",false,tab5) 
label10 = guiCreateLabel(63,271,48,14,"",false,tab5) 
button9 = guiCreateButton(123,269,61,19,"Write",false,tab5) 
button10 = guiCreateButton(186,270,60,18,"Read",false,tab5) 
tab6 = guiCreateTab("Tab",tabPanel) 
memo6 = guiCreateMemo(5,7,476,262,"",false,tab6) 
label11 = guiCreateLabel(11,271,50,16,"Editable :",false,tab6) 
label12 = guiCreateLabel(63,271,48,14,"",false,tab6) 
button11 = guiCreateButton(123,269,61,19,"Write",false,tab6) 
button12 = guiCreateButton(186,270,60,18,"Read",false,tab6) 
tab7 = guiCreateTab("Tab",tabPanel) 
memo7 = guiCreateMemo(5,7,476,262,"",false,tab7) 
label13 = guiCreateLabel(11,271,50,16,"Editable :",false,tab7) 
label14 = guiCreateLabel(63,271,48,14,"",false,tab7) 
button13 = guiCreateButton(123,269,61,19,"Write",false,tab7) 
button14 = guiCreateButton(186,270,60,18,"Read",false,tab7) 
  
local root = getRootElement() 
  
function ifClicks1() 
    triggerServerEvent ( "admin1", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button1 ,ifClicks1) 
  
function ifClicks2() 
    triggerServerEvent ( "admin2", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button2 ,ifClicks2) 
  
function ifClicks3() 
    triggerServerEvent ( "admin3", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button3 ,ifClicks3) 
  
function ifClicks4() 
    triggerServerEvent ( "admin4", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button4 ,ifClicks4) 
  
function ifClicks5() 
    triggerServerEvent ( "admin5", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button5 ,ifClicks5) 
  
function ifClicks6() 
    triggerServerEvent ( "admin6", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button6 ,ifClicks6) 
  
function ifClicks7() 
    triggerServerEvent ( "admin7", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button7 ,ifClicks7) 
  
function ifClicks8() 
    triggerServerEvent ( "admin8", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button8 ,ifClicks8) 
  
function ifClicks9() 
    triggerServerEvent ( "admin9", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button9 ,ifClicks9) 
  
function ifClicks8() 
    triggerServerEvent ( "admin9", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button9 ,ifClicks9) 
  
function ifClicks10() 
    triggerServerEvent ( "admin10", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button10 ,ifClicks10) 
  
function ifClicks11() 
    triggerServerEvent ( "admin11", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button11 ,ifClicks11) 
  
function ifClicks12() 
    triggerServerEvent ( "admin12", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button12 ,ifClicks12) 
  
function ifClicks13() 
    triggerServerEvent ( "admin13", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button13 ,ifClicks13) 
  
function ifClicks13() 
    triggerServerEvent ( "admin13", getRootElement()) 
end 
addEventHandler ( "onClientGUIClick", button13 ,ifClicks13) 
  
function writable1() 
  guiMemoSetReadOnly(memo1, false) 
end 
addEvent( "setWritable1", true ) 
addEventHandler( "setWritable1", getRootElement(), writable1 ) 
  
function readable1() 
  guiMemoSetReadOnly(memo1, true) 
end 
addEvent( "setReadable1", true ) 
addEventHandler( "setReadable1", getRootElement(), readable1 ) 
  
function writable2() 
  guiMemoSetReadOnly(memo2, false) 
end 
addEvent( "setWritable2", true ) 
addEventHandler( "setWritable2", getRootElement(), writable2 ) 
  
function readable2() 
  guiMemoSetReadOnly(memo2, true) 
end 
addEvent( "setReadable2", true ) 
addEventHandler( "setReadable2", getRootElement(), readable2 ) 
  
function writable3() 
  guiMemoSetReadOnly(memo3, false) 
end 
addEvent( "setWritable3", true ) 
addEventHandler( "setWritable3", getRootElement(), writable3 ) 
  
function readable3() 
  guiMemoSetReadOnly(memo3, true) 
end 
addEvent( "setReadable3", true ) 
addEventHandler( "setReadable3", getRootElement(), readable3 ) 
  
function writable4() 
  guiMemoSetReadOnly(memo4, false) 
end 
addEvent( "setWritable4", true ) 
addEventHandler( "setWritable4", getRootElement(), writable4 ) 
  
function readable4() 
  guiMemoSetReadOnly(memo4, true) 
end 
addEvent( "setReadable4", true ) 
addEventHandler( "setReadable4", getRootElement(), readable4 ) 
  
function writable5() 
  guiMemoSetReadOnly(memo5, false) 
end 
addEvent( "setWritable5", true ) 
addEventHandler( "setWritable5", getRootElement(), writable5 ) 
  
function readable5() 
  guiMemoSetReadOnly(memo5, true) 
end 
addEvent( "setReadable5", true ) 
addEventHandler( "setReadable5", getRootElement(), readable5 ) 
  
function writable6() 
  guiMemoSetReadOnly(memo6, false) 
end 
addEvent( "setWritable6", true ) 
addEventHandler( "setWritable6", getRootElement(), writable6 ) 
  
function readable6() 
  guiMemoSetReadOnly(memo6, true) 
end 
addEvent( "setReadable6", true ) 
addEventHandler( "setReadable6", getRootElement(), readable6 ) 
  
function writable7() 
  guiMemoSetReadOnly(memo7, false) 
end 
addEvent( "setWritable7", true ) 
addEventHandler( "setWritable7", getRootElement(), writable7 ) 
  
function readable7() 
  guiMemoSetReadOnly(memo7, true) 
end 
addEvent( "setReadable7", true ) 
addEventHandler( "setReadable7", getRootElement(), readable7 ) 
  
function loginMust() 
    outputChatBox("You must login to use this button!" , 255 , 0 , 0 ) 
end 
addEvent( "loginRequired", true ) 
addEventHandler( "loginRequired", getRootElement(), loginMust ) 
  
function justAdminsCanSoFu() 
    outputChatBox("Just admins can use this function!!!" , 255 , 0 , 0 ) 
end 
addEvent( "justAdmins", true ) 
addEventHandler( "justAdmins", getRootElement(), justAdminsCanSoFu ) 

Here is the client side.

I was time-stressed so don't blame me cuz i used all the handlers for 1 function :)

Link to comment
infoPanel = guiCreateWindow(168,158,508,344,"F1 - Info",false) 
tabPanel = guiCreateTabPanel(9,20,490,315,false,infoPanel) 
tab1 = guiCreateTab("Tab",tab1) 
memo1 = guiCreateMemo(5,7,476,262,"",false,tab1) 
label1 = guiCreateLabel(11,271,50,16,"Editable :",false,tab1) 
label2 = guiCreateLabel(63,271,48,14,"",false,tab1)) 
button1 = guiCreateButton(123,269,61,19,"Write",false,tab1) 
button2 = guiCreateButton(186,270,60,18,"Read",false,tab1) 
tab2 = guiCreateTab("Tab",tabPanel) 
memo2 = guiCreateMemo(5,7,476,262,"",false,tab2) 
label3 = guiCreateLabel(11,271,50,16,"Editable :",false,tab2) 
label4 = guiCreateLabel(63,271,48,14,"",false,tab2) 
button3 = guiCreateButton(123,269,61,19,"Write",false,tab2) 
button4 = guiCreateButton(186,270,60,18,"Read",false,tab2) 
tab3 = guiCreateTab("Tab",tabPanel) 
memo3 = guiCreateMemo(5,7,476,262,"",false,tab3) 
label5 = guiCreateLabel(11,271,50,16,"Editable :",false,tab3) 
label6 = guiCreateLabel(63,271,48,14,"",false,tab3) 
button5 = guiCreateButton(123,269,61,19,"Write",false,tab3) 
button6 = guiCreateButton(186,270,60,18,"Read",false,tab3) 
tab4 = guiCreateTab("Tab",tabPanel) 
memo4 = guiCreateMemo(5,7,476,262,"",false,tab4) 
label7 = guiCreateLabel(11,271,50,16,"Editable :",false,tab4) 
label8 = guiCreateLabel(63,271,48,14,"",false,tab4) 
button7 = guiCreateButton(123,269,61,19,"Write",false,tab4) 
button8 = guiCreateButton(186,270,60,18,"Read",false,tab4) 
tab5 = guiCreateTab("Tab",tabPanel) 
memo5 = guiCreateMemo(5,7,476,262,"",false,tab5) 
label9 = guiCreateLabel(11,271,50,16,"Editable :",false,tab5) 
label10 = guiCreateLabel(63,271,48,14,"",false,tab5) 
button9 = guiCreateButton(123,269,61,19,"Write",false,tab5) 
button10 = guiCreateButton(186,270,60,18,"Read",false,tab5) 
tab6 = guiCreateTab("Tab",tabPanel) 
memo6 = guiCreateMemo(5,7,476,262,"",false,tab6) 
label11 = guiCreateLabel(11,271,50,16,"Editable :",false,tab6) 
label12 = guiCreateLabel(63,271,48,14,"",false,tab6) 
button11 = guiCreateButton(123,269,61,19,"Write",false,tab6) 
button12 = guiCreateButton(186,270,60,18,"Read",false,tab6) 
tab7 = guiCreateTab("Tab",tabPanel) 
memo7 = guiCreateMemo(5,7,476,262,"",false,tab7) 
label13 = guiCreateLabel(11,271,50,16,"Editable :",false,tab7) 
label14 = guiCreateLabel(63,271,48,14,"",false,tab7) 
button13 = guiCreateButton(123,269,61,19,"Write",false,tab7) 
button14 = guiCreateButton(186,270,60,18,"Read",false,tab7) 
  
local root = getRootElement() 
  
function ifClicks1() 
    triggerServerEvent ( "admin1", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button1 ,ifClicks1) 
  
function ifClicks2() 
    triggerServerEvent ( "admin2", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button2 ,ifClicks2) 
  
function ifClicks3() 
    triggerServerEvent ( "admin3", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button3 ,ifClicks3) 
  
function ifClicks4() 
    triggerServerEvent ( "admin4", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button4 ,ifClicks4) 
  
function ifClicks5() 
    triggerServerEvent ( "admin5", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button5 ,ifClicks5) 
  
function ifClicks6() 
    triggerServerEvent ( "admin6", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button6 ,ifClicks6) 
  
function ifClicks7() 
    triggerServerEvent ( "admin7", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button7 ,ifClicks7) 
  
function ifClicks8() 
    triggerServerEvent ( "admin8", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button8 ,ifClicks8) 
  
function ifClicks9() 
    triggerServerEvent ( "admin9", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button9 ,ifClicks9) 
  
function ifClicks8() 
    triggerServerEvent ( "admin9", localPLayer) 
end 
addEventHandler ( "onClientGUIClick", button9 ,ifClicks9) 
  
function ifClicks10() 
    triggerServerEvent ( "admin10", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button10 ,ifClicks10) 
  
function ifClicks11() 
    triggerServerEvent ( "admin11", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button11 ,ifClicks11) 
  
function ifClicks12() 
    triggerServerEvent ( "admin12", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button12 ,ifClicks12) 
  
function ifClicks13() 
    triggerServerEvent ( "admin13", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button13 ,ifClicks13) 
  
function ifClicks13() 
    triggerServerEvent ( "admin13", localPlayer) 
end 
addEventHandler ( "onClientGUIClick", button13 ,ifClicks13) 
  
function writable1() 
  guiMemoSetReadOnly(memo1, false) 
end 
addEvent( "setWritable1", true ) 
addEventHandler( "setWritable1", getRootElement(), writable1 ) 
  
function readable1() 
  guiMemoSetReadOnly(memo1, true) 
end 
addEvent( "setReadable1", true ) 
addEventHandler( "setReadable1", getRootElement(), readable1 ) 
  
function writable2() 
  guiMemoSetReadOnly(memo2, false) 
end 
addEvent( "setWritable2", true ) 
addEventHandler( "setWritable2", getRootElement(), writable2 ) 
  
function readable2() 
  guiMemoSetReadOnly(memo2, true) 
end 
addEvent( "setReadable2", true ) 
addEventHandler( "setReadable2", getRootElement(), readable2 ) 
  
function writable3() 
  guiMemoSetReadOnly(memo3, false) 
end 
addEvent( "setWritable3", true ) 
addEventHandler( "setWritable3", getRootElement(), writable3 ) 
  
function readable3() 
  guiMemoSetReadOnly(memo3, true) 
end 
addEvent( "setReadable3", true ) 
addEventHandler( "setReadable3", getRootElement(), readable3 ) 
  
function writable4() 
  guiMemoSetReadOnly(memo4, false) 
end 
addEvent( "setWritable4", true ) 
addEventHandler( "setWritable4", getRootElement(), writable4 ) 
  
function readable4() 
  guiMemoSetReadOnly(memo4, true) 
end 
addEvent( "setReadable4", true ) 
addEventHandler( "setReadable4", getRootElement(), readable4 ) 
  
function writable5() 
  guiMemoSetReadOnly(memo5, false) 
end 
addEvent( "setWritable5", true ) 
addEventHandler( "setWritable5", getRootElement(), writable5 ) 
  
function readable5() 
  guiMemoSetReadOnly(memo5, true) 
end 
addEvent( "setReadable5", true ) 
addEventHandler( "setReadable5", getRootElement(), readable5 ) 
  
function writable6() 
  guiMemoSetReadOnly(memo6, false) 
end 
addEvent( "setWritable6", true ) 
addEventHandler( "setWritable6", getRootElement(), writable6 ) 
  
function readable6() 
  guiMemoSetReadOnly(memo6, true) 
end 
addEvent( "setReadable6", true ) 
addEventHandler( "setReadable6", getRootElement(), readable6 ) 
  
function writable7() 
  guiMemoSetReadOnly(memo7, false) 
end 
addEvent( "setWritable7", true ) 
addEventHandler( "setWritable7", getRootElement(), writable7 ) 
  
function readable7() 
  guiMemoSetReadOnly(memo7, true) 
end 
addEvent( "setReadable7", true ) 
addEventHandler( "setReadable7", getRootElement(), readable7 ) 
  
function loginMust() 
    outputChatBox("You must login to use this button!" , 255 , 0 , 0 ) 
end 
addEvent( "loginRequired", true ) 
addEventHandler( "loginRequired", getRootElement(), loginMust ) 
  
function justAdminsCanSoFu() 
    outputChatBox("Just admins can use this function!!!" , 255 , 0 , 0 ) 
end 
addEvent( "justAdmins", true ) 
addEventHandler( "justAdmins", getRootElement(), justAdminsCanSoFu ) 

Link to comment

Ok ,ty solidsnake , but there is a major problem : When i edit something , the others cannot see it , and when i reconnect , i can't see it too .. So is there a way to save that text , and then to put it in that memo , to be visible to the others.. ?

Ty .. Here is my new client-side script ..

  
infoPanel = guiCreateWindow(168,158,508,344,"F1 - Info",false) 
tabPanel = guiCreateTabPanel(9,20,490,315,false,infoPanel) 
tab1 = guiCreateTab("Tab",tabPanel) 
memo1 = guiCreateMemo(5,7,476,262,"",false,tab1) 
guiMemoSetReadOnly(memo1, true) 
label1 = guiCreateLabel(11,271,50,16,"Editable :",false,tab1) 
label2 = guiCreateLabel(63,271,48,14,"",false,tab1) 
guiSetText ( label2, "Readable" ) 
button1 = guiCreateButton(123,269,61,19,"Write",false,tab1) 
button2 = guiCreateButton(186,270,60,18,"Read",false,tab1) 
tab2 = guiCreateTab("Tab",tabPanel) 
memo2 = guiCreateMemo(5,7,476,262,"",false,tab2) 
guiMemoSetReadOnly(memo2, true) 
label3 = guiCreateLabel(11,271,50,16,"Editable :",false,tab2) 
label4 = guiCreateLabel(63,271,48,14,"",false,tab2) 
guiSetText ( label4, "Readable" ) 
button3 = guiCreateButton(123,269,61,19,"Write",false,tab2) 
button4 = guiCreateButton(186,270,60,18,"Read",false,tab2) 
tab3 = guiCreateTab("Tab",tabPanel) 
memo3 = guiCreateMemo(5,7,476,262,"",false,tab3) 
guiMemoSetReadOnly(memo3, true) 
label5 = guiCreateLabel(11,271,50,16,"Editable :",false,tab3) 
label6 = guiCreateLabel(63,271,48,14,"",false,tab3) 
guiSetText ( label6, "Readable" ) 
button5 = guiCreateButton(123,269,61,19,"Write",false,tab3) 
button6 = guiCreateButton(186,270,60,18,"Read",false,tab3) 
tab4 = guiCreateTab("Tab",tabPanel) 
memo4 = guiCreateMemo(5,7,476,262,"",false,tab4) 
guiMemoSetReadOnly(memo4, true) 
label7 = guiCreateLabel(11,271,50,16,"Editable :",false,tab4) 
label8 = guiCreateLabel(63,271,48,14,"",false,tab4) 
guiSetText ( label8, "Readable" ) 
button7 = guiCreateButton(123,269,61,19,"Write",false,tab4) 
button8 = guiCreateButton(186,270,60,18,"Read",false,tab4) 
tab5 = guiCreateTab("Tab",tabPanel) 
memo5 = guiCreateMemo(5,7,476,262,"",false,tab5) 
guiMemoSetReadOnly(memo5, true) 
label9 = guiCreateLabel(11,271,50,16,"Editable :",false,tab5) 
label10 = guiCreateLabel(63,271,48,14,"",false,tab5) 
guiSetText ( label10, "Readable" ) 
button9 = guiCreateButton(123,269,61,19,"Write",false,tab5) 
button10 = guiCreateButton(186,270,60,18,"Read",false,tab5) 
tab6 = guiCreateTab("Tab",tabPanel) 
memo6 = guiCreateMemo(5,7,476,262,"",false,tab6) 
guiMemoSetReadOnly(memo6, true) 
label11 = guiCreateLabel(11,271,50,16,"Editable :",false,tab6) 
label12 = guiCreateLabel(63,271,48,14,"",false,tab6) 
guiSetText ( label12, "Readable" ) 
button11 = guiCreateButton(123,269,61,19,"Write",false,tab6) 
button12 = guiCreateButton(186,270,60,18,"Read",false,tab6) 
tab7 = guiCreateTab("Tab",tabPanel) 
memo7 = guiCreateMemo(5,7,476,262,"",false,tab7) 
guiMemoSetReadOnly(memo7, true) 
label13 = guiCreateLabel(11,271,50,16,"Editable :",false,tab7) 
label14 = guiCreateLabel(63,271,48,14,"",false,tab7) 
guiSetText ( label14, "Readable" ) 
button13 = guiCreateButton(123,269,61,19,"Write",false,tab7) 
button14 = guiCreateButton(186,270,60,18,"Read",false,tab7) 
  
local root = getRootElement() 
  
function writable1() 
  guiMemoSetReadOnly(memo1, false) 
  guiSetText ( label2, "Writable" ) 
end 
addEvent( "setWritable1", true ) 
addEventHandler( "setWritable1", getRootElement(), writable1 ) 
  
function readable1() 
  guiMemoSetReadOnly(memo1, true) 
 guiSetText ( label2, "Readable" ) 
end 
addEvent( "setReadable1", true ) 
addEventHandler( "setReadable1", getRootElement(), readable1 ) 
  
function writable2() 
  guiMemoSetReadOnly(memo2, false) 
  guiSetText ( label4, "Writable" ) 
end 
addEvent( "setWritable2", true ) 
addEventHandler( "setWritable2", getRootElement(), writable2 ) 
  
function readable2() 
  guiMemoSetReadOnly(memo2, true) 
  guiSetText ( label4, "Readable" ) 
end 
addEvent( "setReadable2", true ) 
addEventHandler( "setReadable2", getRootElement(), readable2 ) 
  
function writable3() 
  guiMemoSetReadOnly(memo3, false) 
  guiSetText ( label6, "Writable" ) 
end 
addEvent( "setWritable3", true ) 
addEventHandler( "setWritable3", getRootElement(), writable3 ) 
  
function readable3() 
  guiMemoSetReadOnly(memo3, true) 
  guiSetText ( label6, "Readable" ) 
end 
addEvent( "setReadable3", true ) 
addEventHandler( "setReadable3", getRootElement(), readable3 ) 
  
function writable4() 
  guiMemoSetReadOnly(memo4, false) 
  guiSetText ( label8, "Writable" ) 
end 
addEvent( "setWritable4", true ) 
addEventHandler( "setWritable4", getRootElement(), writable4 ) 
  
function readable4() 
  guiMemoSetReadOnly(memo4, true) 
  guiSetText ( label8, "Readable" ) 
end 
addEvent( "setReadable4", true ) 
addEventHandler( "setReadable4", getRootElement(), readable4 ) 
  
function writable5() 
  guiMemoSetReadOnly(memo5, false) 
  guiSetText ( label10, "Writable" ) 
end 
addEvent( "setWritable5", true ) 
addEventHandler( "setWritable5", getRootElement(), writable5 ) 
  
function readable5() 
  guiMemoSetReadOnly(memo5, true) 
  guiSetText ( label10, "Readable" ) 
end 
addEvent( "setReadable5", true ) 
addEventHandler( "setReadable5", getRootElement(), readable5 ) 
  
function writable6() 
  guiMemoSetReadOnly(memo6, false) 
  guiSetText ( label12, "Writable" ) 
end 
addEvent( "setWritable6", true ) 
addEventHandler( "setWritable6", getRootElement(), writable6 ) 
  
function readable6() 
  guiMemoSetReadOnly(memo6, true) 
  guiSetText ( label12, "Readable" ) 
end 
addEvent( "setReadable6", true ) 
addEventHandler( "setReadable6", getRootElement(), readable6 ) 
  
function writable7() 
  guiMemoSetReadOnly(memo7, false) 
  guiSetText ( label14, "Writable" ) 
end 
addEvent( "setWritable7", true ) 
addEventHandler( "setWritable7", getRootElement(), writable7 ) 
  
function readable7() 
  guiMemoSetReadOnly(memo7, true) 
  guiSetText ( label14, "Readable" ) 
end 
addEvent( "setReadable7", true ) 
addEventHandler( "setReadable7", getRootElement(), readable7 ) 
  
function loginMust() 
    outputChatBox("You must login to use this button!" , 255 , 0 , 0 ) 
end 
addEvent( "loginRequired", true ) 
addEventHandler( "loginRequired", getRootElement(), loginMust ) 
  
function justAdminsCanSoFu() 
    outputChatBox("Just admins can use this function!!!" , 255 , 0 , 0 ) 
end 
addEvent( "justAdmins", true ) 
addEventHandler( "justAdmins", getRootElement(), justAdminsCanSoFu ) 
  
function showInfoPanel () 
if (guiGetVisible (infoPanel)) then 
    guiSetVisible (infoPanel, false) 
    showCursor (false) 
else 
    guiSetVisible(infoPanel, true) 
    showCursor (true) 
end 
end 
bindKey ("F1", "down", showInfoPanel) 
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == button1) then 
    triggerServerEvent ("admin1", getLocalPlayer()) 
  elseif (source == button2) then 
    triggerServerEvent ("admin2", getLocalPlayer()) 
  elseif (source == button3) then 
    triggerServerEvent ("admin3", getLocalPlayer()) 
  elseif (source == button4) then 
    triggerServerEvent ("admin4", getLocalPlayer()) 
  elseif (source == button5) then 
    triggerServerEvent ("admin5", getLocalPlayer()) 
  elseif (source == button6) then 
    triggerServerEvent ("admin6", getLocalPlayer()) 
  elseif (source == button7) then 
    triggerServerEvent ("admin7", getLocalPlayer()) 
  elseif (source == button8) then 
    triggerServerEvent ("admin8", getLocalPlayer()) 
  elseif (source == button9) then 
    triggerServerEvent ("admin9", getLocalPlayer()) 
  elseif (source == button10) then 
    triggerServerEvent ("admin10", getLocalPlayer()) 
  elseif (source == button11) then 
    triggerServerEvent ("admin11", getLocalPlayer()) 
  elseif (source == button12) then 
    triggerServerEvent ("admin12", getLocalPlayer()) 
  elseif (source == button13) then 
    triggerServerEvent ("admin13", getLocalPlayer()) 
  elseif (source == button14) then 
    triggerServerEvent ("admin14", getLocalPlayer()) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

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