Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. Karuzo

    clear debug?

    Just type cleardebug in F8
  2. Yeah as Bomsai said use onClientResourceStart and it will work
  3. Karuzo

    gui panel

    Put showCursor(true) in the songo function, and showCursor(false) in Close function
  4. I think you should remove the EventHandler in Line 20.
  5. Karuzo

    gui panel

    Well you had songsgui =, and setted GUIEditor.window[1] to true(i mean the visibility). That's why it didn't worked. And the Close function just set's the Window visibility to false. The onClientGUIClick Event/Function just check which button was clicked, and if the button was pressed it checks if another song is playing at this moment, if so , it will stop the sound. If not, it will start the song. And if you press on "Stop" it will check if a song is playing at this moment and will stop it. Hope you understood me.
  6. That's true. But those bombs where no Nukes.
  7. Karuzo

    gui panel

    Here you go: GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(495, 299, 522, 358, "Songs panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(12, 38, 198, 69, "SONG1", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF90522") GUIEditor.button[2] = guiCreateButton(278, 9, 201, 27, "", false, GUIEditor.button[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(3, 126, 162, 16, "", false, GUIEditor.button[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(330, 42, 176, 65, "SONG2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF1FF409") GUIEditor.button[5] = guiCreateButton(18, 156, 192, 71, "SONG3", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF0622F6") GUIEditor.button[6] = guiCreateButton(334, 160, 172, 67, "SONG4", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF803EF") GUIEditor.button[7] = guiCreateButton(23, 290, 197, 58, "Stop", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "sa-header") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.button[8] = guiCreateButton(338, 286, 168, 62, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[8], "sa-header") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA") function songo() guiSetVisible ( GUIEditor.window[1], true ) end bindKey("F7","down",songo) function Close() guiSetVisible(GUIEditor.window[1], false) end addEventHandler("onClientGUIClick", GUIEditor.button[8],Close, false) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then if isElement(sound3) then destroyElement(sound3) end if isElement(sound2) then destroyElement(sound2) end if isElement(sound4) then destroyElement(sound4) end if isElement(sound1) then destroyElement(sound1) end sound1 = playSound( "song1.mp3", false ) elseif ( source == GUIEditor.button[4] ) then if isElement(sound3) then destroyElement(sound3) end if isElement(sound1) then destroyElement(sound1) end if isElement(sound4) then destroyElement(sound4) end if isElement(sound2) then destroyElement(sound2) end sound2 = playSound( "song2.mp3", false ) elseif ( source == GUIEditor.button[5] ) then if isElement(sound1) then destroyElement(sound1) end if isElement(sound2) then destroyElement(sound2) end if isElement(sound4) then destroyElement(sound4) end if isElement(sound3) then destroyElement(sound3) end sound3 = playSound( "song3.mp3", false ) elseif ( source == GUIEditor.button[6] ) then if isElement(sound1) then destroyElement(sound1) end if isElement(sound2) then destroyElement(sound2) end if isElement(sound3) then destroyElement(sound3) end if isElement(sound4) then destroyElement(sound4) end sound4 = playSound( "song4.mp3", false ) elseif ( source == GUIEditor.button[7] ) then if isElement(sound1) then destroyElement(sound1) end if isElement(sound2) then destroyElement(sound2) end if isElement(sound3) then destroyElement(sound3) end if isElement(sound4) then destroyElement(sound4) end end end )
  8. Karuzo

    gui panel

    You also need the Event onClientGUIClick
  9. work in dayz ? I think a Login-Panel works with every gamemode...
  10. lol in the WW2 they just bombed on nagasaki and hiroshima.. No Germany or America.
  11. Karuzo

    is this nice?

    You don't know me. You can't say what i can make and what not. You're just telling lies, you say you are a medium scripter and than you say you can't script? I don't care if you made a Farmer Job or something like that. I saw you're code, it's all bugged and wrong so yeah.
  12. Thank you, gonna try it out.
  13. Hmm, but what about if i want it to make with Account functions and don't want it to put it in a XML ? Isn't there another way ?
  14. Thank you Ciber, but got it How can i make a 'Remember Me' button ?
  15. Hey Guys, i need some help, is there a way to get the Account Name of the Player and set it to his Nickname ? and if he wants to change his nick cancel it ?
  16. Ok, so i tried it with GUICreateStaticImage, 'cause it is easier, but my problem is it doesn't change... Code : Loginbtn = guiCreateStaticImage(X+5, Y+300, 290, 65, "images/login_btn.png", false) guiSetVisible(Loginbtn, false) addEventHandler("onClientMouseEnter",Loginbtn,LoginH) function LoginH () guiStaticImageLoadImage(Loginbtn, "images/login_h.png" ) end It's automatically login_h.png why ?
  17. Well, i don't want to use GUI elements, is there a similiar event for DX elements ?
  18. Hey Guys, so i have a login panel, and i want to change the login_btn.png ( the normal login button picture ) to login_h.png( the hover'd login button picture) if the player moves with over the login button.. But i just don't know how i could make this. Hope you can help me
  19. Karuzo

    radar mta

    You have to disable the radar first with showPlayerHudComponent and than make your own.
×
×
  • Create New...