daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GUIEditor_Window = {}
  2. GUIEditor_Button = {}
  3. GUIEditor_Label = {}
  4. GUIEditor_Edit = {}
  5.  
  6.        
  7. GUIEditor_Window[1] = guiCreateWindow(498,249,385,196,"Witamy na Serwerze Alive-RP",false)
  8. guiSetVisible(GUIEditor_Window[1], false)
  9. GUIEditor_Button[1] = guiCreateButton(26,148,157,33,"Zaloguj",false,GUIEditor_Window[1])
  10. GUIEditor_Button[2] = guiCreateButton(210,148,150,33,"Rejestruj",false,GUIEditor_Window[1])
  11. GUIEditor_Label[1] = guiCreateLabel(32,53,42,23,"Nick:",false,GUIEditor_Window[1])
  12. guiSetFont(GUIEditor_Label[1],"clear-normal")
  13. GUIEditor_Label[2] = guiCreateLabel(32,91,42,23,"Hasło:",false,GUIEditor_Window[1])
  14. guiSetFont(GUIEditor_Label[2],"clear-normal")
  15. GUIEditor_Edit[1] = guiCreateEdit(106,47,239,28,"",false,GUIEditor_Window[1])
  16. GUIEditor_Edit[2] = guiCreateEdit(106,86,239,28,"",false,GUIEditor_Window[1])  
  17.  
  18. function showPanel() --Otwieranie Panelu
  19.     guiSetVisible(GUIEditor_Window[1], true)
  20.     guiSetInputMode ("no_binds")
  21.     showCursor(true)
  22. end
  23. addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showPanel)
  24.  
  25. function hidePanel() --Zamykanie Panelu
  26.     guiSetVisible(GUIEditor_Window[1], false)
  27.     showCursor(false)
  28. end
  29. addCommandHandler("logowanie.z", hidePanel)
  30.  
  31. function testujemy () --Test
  32.     local nick = guiGetText(GUIEditor_Edit[1]) --Pobranie Nicku z Okna
  33.     local haslo = guiGetText(GUIEditor_Edit[2]) --Pobranie Hasła z Okna
  34.     outputChatBox("Nick: "..nick.." Hasło: "..haslo)
  35. end
  36. addEventHandler("onClientGUIClick", GUIEditor_Button[1], testujemy)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top