Jump to content

Xeno

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by Xeno

  1. nope.... the gate is there but it doesent move .... function createGate() gatePolice = createObject ( 987, -2494.3918457031, 1199.9107666016, 36.207420349121, 0, 0, 41.605255126953 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function openGate( playerSource, commandName ) local playerName = getPlayerName ( playerSource) ObjectInACLGroup( "User." .. playerName, aclGetGroup ( "Admin." ) ) then moveObject( gatePolice, 3000, -2494.3918457031, 1199.9107666016, 43.20742034912 ) end end addCommandHandler( "open", openGate ) is what i got so far.... any1?
  2. nope.... the gate is there but it doesent move .... function createGate() gatePolice = createObject ( 987, -2494.3918457031, 1199.9107666016, 36.207420349121, 0, 0, 41.605255126953 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function openGate( playerSource, commandName ) local playerName = getPlayerName ( playerSource) ObjectInACLGroup( "User." .. playerName, aclGetGroup ( "Admin." ) ) then moveObject( gatePolice, 3000, -2494.3918457031, 1199.9107666016, 43.20742034912 ) end end addCommandHandler( "open", openGate ) is what i got so far.... any1?
  3. Xeno

    Cancel button

    im making a login gui and im a bit stuck.... look addEventHandler("onClientGUIClick",Cancel,CreateLoginWindow,false) function CreateLoginWindow() wdwLogin = guiCreateWindow(226,146,372,233,"[Admin Login System]",false) guiWindowSetMovable(wdwLogin,false) guiWindowSetSizable(wdwLogin,false) tabpanel = guiCreateTabPanel(0.0242,0.0858,0.9489,0.8755,true,wdwLogin) tab1 = guiCreateTab("Login",tabpanel) login = guiCreateButton(0.1000,0.8611,0.2436,0.1167,"Login",true,tab1) username = guiCreateLabel(0.0113,0.1167,0.3768,0.15,"UserName:",true,tab1) guiLabelSetColor(username,255,255,255) guiLabelSetVerticalAlign(username,"top") guiLabelSetHorizontalAlign(username,"left",false) guiSetFont(username,"default-bold-small") password = guiCreateLabel(0.0113,0.2889,0.3768,0.15,"Password:",true,tab1) guiLabelSetColor(password,255,255,255) guiLabelSetVerticalAlign(password,"top") guiLabelSetHorizontalAlign(password,"left",false) guiSetFont(password,"default-bold-small") username = guiCreateEdit(0.2266,0.1,0.3598,0.1389,localPlayerName,true,tab1) password = guiCreateEdit(0.2266,0.2611,0.3598,0.1389,"",true,tab1) Canel = guiCreateButton( 0.4, 0.85, 0.20, 0.15, "Cancel", true,tab1 ) guiEditSetMasked(password,true) tab2 = guiCreateTab("Info",tabpanel) guiSetVisible(wdwLogin,false) end Im trying to make the cancel button work so it cancels the window
  4. Xeno

    Cancel button

    im making a login gui and im a bit stuck.... look addEventHandler("onClientGUIClick",Cancel,CreateLoginWindow,false) function CreateLoginWindow() wdwLogin = guiCreateWindow(226,146,372,233,"[Admin Login System]",false) guiWindowSetMovable(wdwLogin,false) guiWindowSetSizable(wdwLogin,false) tabpanel = guiCreateTabPanel(0.0242,0.0858,0.9489,0.8755,true,wdwLogin) tab1 = guiCreateTab("Login",tabpanel) login = guiCreateButton(0.1000,0.8611,0.2436,0.1167,"Login",true,tab1) username = guiCreateLabel(0.0113,0.1167,0.3768,0.15,"UserName:",true,tab1) guiLabelSetColor(username,255,255,255) guiLabelSetVerticalAlign(username,"top") guiLabelSetHorizontalAlign(username,"left",false) guiSetFont(username,"default-bold-small") password = guiCreateLabel(0.0113,0.2889,0.3768,0.15,"Password:",true,tab1) guiLabelSetColor(password,255,255,255) guiLabelSetVerticalAlign(password,"top") guiLabelSetHorizontalAlign(password,"left",false) guiSetFont(password,"default-bold-small") username = guiCreateEdit(0.2266,0.1,0.3598,0.1389,localPlayerName,true,tab1) password = guiCreateEdit(0.2266,0.2611,0.3598,0.1389,"",true,tab1) Canel = guiCreateButton( 0.4, 0.85, 0.20, 0.15, "Cancel", true,tab1 ) guiEditSetMasked(password,true) tab2 = guiCreateTab("Info",tabpanel) guiSetVisible(wdwLogin,false) end Im trying to make the cancel button work so it cancels the window
  5. how would i create a gate that opens only for admins? i have tryed but i have only got a commands... please help me function createGate () gatePolice = createObject ( 987, -2494.3918457031, 1199.9107666016, 36.207420349121, 0, 0, 41.605255126953 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function openGate(playerSource, commandName) moveObject ( gatePolice, 3000, -2494.3918457031, 1199.9107666016, 43.207420349121) end addCommandHandler("open", openGate)
  6. how would i create a gate that opens only for admins? i have tryed but i have only got a commands... please help me function createGate () gatePolice = createObject ( 987, -2494.3918457031, 1199.9107666016, 36.207420349121, 0, 0, 41.605255126953 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function openGate(playerSource, commandName) moveObject ( gatePolice, 3000, -2494.3918457031, 1199.9107666016, 43.207420349121) end addCommandHandler("open", openGate)
  7. hey im new 2 scripting and iv run into some trouble... im trying to make a stunt menu so i want a bind key 2 make it pop up and on here is my script so far function INFO() outputChatBox("#FF0000*INFO: #Press F3 to open up the stunt screen", getRootElement(), 0,0,0, true) end addEventHandler( "onResourceStart", getRootElement(), INFO ) function CreateLoginWindow() wdwLogin = guiCreateWindow(0.375,0.350,0.300,0.250,"stunts",true) guiWindowSetSizable(wdwLogin,false) guiWindowSetMovable(wdwLogin,true) guiCreateLabel(0.080,0.200,0.250,0.250,"Freefall",true,wdwLogin) edtUser = guiCreateEdit(0.380,0.190,0.500,0.150,localPlayerName,true,wdwLogin) guiEditSetReadOnly(edtUser,true) edtPass = guiCreateEdit(0.380,0.440,0.500,0.150,"",true,wdwLogin) guiEditSetMaxLength(edtPass,20) guiEditSetMasked(edtPass,true) btnLogin = guiCreateButton(0.630,0.650,0.250,0.150,"Log In",true,wdwLogin) btnRegister = guiCreateButton (0.630,0.600,0.250,0.150,"Register",true,wdwLogin) guiSetVisible(wdwLogin,false) end addEventHandler( "onResourceStart", getRootElement(), CreateLoginWindow ) please help. i no that you dont like just doing a script for me but i have no clue lol
  8. hey im new 2 scripting and iv run into some trouble... im trying to make a stunt menu so i want a bind key 2 make it pop up and on here is my script so far function INFO() outputChatBox("#FF0000*INFO: #Press F3 to open up the stunt screen", getRootElement(), 0,0,0, true) end addEventHandler( "onResourceStart", getRootElement(), INFO ) function CreateLoginWindow() wdwLogin = guiCreateWindow(0.375,0.350,0.300,0.250,"stunts",true) guiWindowSetSizable(wdwLogin,false) guiWindowSetMovable(wdwLogin,true) guiCreateLabel(0.080,0.200,0.250,0.250,"Freefall",true,wdwLogin) edtUser = guiCreateEdit(0.380,0.190,0.500,0.150,localPlayerName,true,wdwLogin) guiEditSetReadOnly(edtUser,true) edtPass = guiCreateEdit(0.380,0.440,0.500,0.150,"",true,wdwLogin) guiEditSetMaxLength(edtPass,20) guiEditSetMasked(edtPass,true) btnLogin = guiCreateButton(0.630,0.650,0.250,0.150,"Log In",true,wdwLogin) btnRegister = guiCreateButton (0.630,0.600,0.250,0.150,"Register",true,wdwLogin) guiSetVisible(wdwLogin,false) end addEventHandler( "onResourceStart", getRootElement(), CreateLoginWindow ) please help. i no that you dont like just doing a script for me but i have no clue lol
×
×
  • Create New...