Jump to content

Gui Scripting


SkullBreaker

Recommended Posts

Hi All, i want to script a event gui i have this as client script:

function() 
        GUIEditor_Window = {} 
        GUIEditor_TabPanel = {} 
        GUIEditor_Tab = {} 
        GUIEditor_Button = {} 
        GUIEditor_Memo = {} 
  
        GUIEditor_Window[1] = guiCreateWindow(333,326,185,220,"SARG Event panel 0.1",false) 
        GUIEditor_TabPanel[1] = guiCreateTabPanel(10,20,166,191,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[1] = guiCreateTab("Rules",GUIEditor_TabPanel[1]) 
        GUIEditor_Memo[1] = guiCreateMemo(6,4,155,182,"The rules of the event: There are 2 teams, armed with spray, the goal is to eliminate the enemy team with the spray, admins can stop the event by typing: /stop ()Events",false,GUIEditor_Tab[1]) 
        guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
        GUIEditor_Tab[2] = guiCreateTab("START!",GUIEditor_TabPanel[1]) 
        GUIEditor_Button[1] = guiCreateButton(23,33,129,64,"START EVENT",false,GUIEditor_Tab[2]) 
    end 
end 
addEventHandler("onClientResourceStart",resourceRoot, 
  

What to do now? pls help me i am a beginner

Link to comment
The button ;
 GUIEditor_Button[1] = guiCreateButton(23,33,129,64,"START EVENT",false,GUIEditor_Tab[2]) 

must work if i click the button there must appair a marker who teleports you to a other location, and start a other recource/gamemode like ctf or somthing

You must trigger some server functions too..

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