Jump to content

Need Server Side actvite


E-mail

Recommended Posts

Hi all before 2 years i have made this script but it need server side

i forget the commcand :D

ClientSide----

function gui ( ) 
    window = guiCreateWindow ( 0.21, 0.12, 0.6, 0.75, "Mr.Happey", true ) 
    showCursor ( true ) 
    guiWindowSetSizable ( window, false ) 
    panel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, window ) 
    welcome = guiCreateTab( "Welcome", panel ) 
    rules = guiCreateTab( "Rules", panel ) 
    admins = guiCreateTab( "Admins", panel ) 
    guiCreateStaticImage( 20, 15, 448, 30, "text.png", false, window ) 
    guiCreateStaticImage( 7, 2, 448, 368, "rules.png", false, rules ) 
    guiCreateStaticImage( 7, 2, 448, 368, "welcome.png", false, welcome ) 
    xml = xmlLoadFile( "admins.xml" ) 
    text = xmlNodeGetValue( xml ) 
    memo = guiCreateMemo ( 0.007, 0.007, 0.987, 0.98, text, true, admins ) 
    guiMemoSetReadOnly ( memo, true ) 
    bindKey ( "F5", "down", show_gui ) 
end 
addEventHandler( "onClientResourceStart", getResourceRootElement(), gui ) 
addEventHandler( "onClientPlayerJoin", getLocalPlayer(), gui ) 
----------------- 
function show_gui ( ) 
        if ( guiGetVisible ( window ) == true ) then 
                guiSetVisible ( window, false ) 
                showCursor ( false ) 
        else 
                guiSetVisible ( window, true ) 
                showCursor ( 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...