Chronos Posted July 20, 2013 Posted July 20, 2013 hello , i made this gui but still i need some help ,well i need some functions that's make me to create team,wirh RPG color,and Marker Position to take the team. gui: GUIEditor = { checkbox = {}, edit = {}, button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(259, 115, 300, 200, "Team manager", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFA3803") GUIEditor.edit[1] = guiCreateEdit(300, 184, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(10, 35, 80, 22, "Create Team:", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 35, 180, 22, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(10, 82, 75, 22, "Team color:", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(302, 173, 0, 15, "", false, false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(110, 82, 45, 22, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(172, 82, 45, 22, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(235, 82, 45, 22, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(10, 129, 90, 22, "Marker Position:", false, GUIEditor.window[1]) GUIEditor.edit[6] = guiCreateEdit(110, 129, 45, 22, "", false, GUIEditor.window[1]) GUIEditor.edit[7] = guiCreateEdit(172, 129, 45, 22, "", false, GUIEditor.window[1]) GUIEditor.edit[8] = guiCreateEdit(235, 129, 45, 22, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(117, 168, 100, 22, "add team", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFA5402") end ) as you can see this is the gui.
Sparrow Posted July 21, 2013 Posted July 21, 2013 -- Server Side functions: createTeam createMarker setPlayerTeam getTeamFromName events: "onMarkerHit" -- Client side functions: guiGetText triggerServerEvent events: "onClientGUIClick"
-.Paradox.- Posted July 21, 2013 Posted July 21, 2013 -- Server Side functions: createTeam createMarker setPlayerTeam getTeamFromName events: "onMarkerHit" -- Client side functions: guiGetText triggerServerEvent events: "onClientGUIClick" Why "onMarkerHit"
Sparrow Posted July 21, 2013 Posted July 21, 2013 if he'll make the marker on client side, it'll ve visible on for local player and not for all
-.Paradox.- Posted July 21, 2013 Posted July 21, 2013 Ok, he can use, if (hasObjectPermissionTo(thePlayer, "function.banPlayer")) then too
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now