daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function client_onClick(button, state)
  2.     if not isCursorShowing() then
  3.         return
  4.     end
  5.     if not getElementData(localPlayer, "game:login") == true then return end
  6.     if button == "left" and state == "up" then
  7.        -- Start gui
  8.        local sound = "misc/button.mp3"
  9.        local blokada = false
  10.        if isMouseIn(screenW * 0.1152, screenH * 0.4319, screenW *0.128,screenH * 0.128) and settings.gui == "start" then
  11.          
  12.        
  13.            settings.gui = "login"
  14.            playSound(sound, false)
  15. blokada = true
  16.            exports['L-editbox']:createCustomEditbox('LOGOWANIE-LOGIN', 'Nazwa użytkownika...',screenW * 0.4111, screenH * 0.4319, screenW *0.200,screenH * 0.050,false,"")
  17.     exports['L-editbox']:createCustomEditbox('LOGOWANIE-HASLO', 'Hasło...',screenW * 0.4111, screenH * 0.5419, screenW *0.200,screenH * 0.050,true,"")
  18.        elseif isMouseIn(screenW * 0.4111, screenH * 0.4319, screenW *0.128,screenH * 0.128) and settings.gui == "start" then
  19.        
  20.            settings.gui = "register"
  21.            blokada = true
  22.            exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-LOGIN')
  23. exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-HASLO')
  24.            exports['L-editbox']:createCustomEditbox('REJESTRACJA-LOGIN', 'Nazwa użytkownika...',screenW * 0.4111, screenH * 0.4019, screenW *0.200,screenH * 0.050,false,"")
  25.     exports['L-editbox']:createCustomEditbox('REJESTRACJA-HASLO', 'Hasło...',screenW * 0.4111, screenH * 0.4919, screenW *0.200,screenH * 0.050,true,"")
  26.     exports['L-editbox']:createCustomEditbox('REJESTRACJA-HASLO2', 'Potwórz hasło...',screenW * 0.4111, screenH * 0.5819, screenW *0.200,screenH * 0.050,true,"")
  27.  
  28.     exports['L-editbox']:createCustomEditbox('REJESTRACJA-EMAIL', 'E-Mail...',screenW * 0.4111, screenH * 0.6619, screenW *0.200,screenH * 0.050,false,"")
  29.      
  30.     playSound(sound, false)
  31.        elseif isMouseIn(screenW * 0.7111, screenH * 0.4319, screenW *0.128,screenH * 0.128) and settings.gui == "start" then
  32.            settings.gui = "info"
  33.            blokada = false
  34.            playSound(sound, false)
  35.        end
  36.        -- Login gui
  37.        if isMouseIn(screenW * 0.5111, screenH * 0.7703, screenW * 0.0878, screenH * 0.0444) and settings.gui == "login" then
  38.            settings.gui = "start"
  39.            blokada = false
  40.            exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-LOGIN')
  41.     exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-HASLO')
  42.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-LOGIN')
  43.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-HASLO')
  44.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-HASLO2')
  45.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-EMAIL')
  46.            playSound(sound, false)
  47.        end
  48.        
  49.        -- Register gui
  50.        if isMouseIn(screenW * 0.5111, screenH * 0.7703, screenW * 0.0878, screenH * 0.0444) and settings.gui == "register" then
  51.            settings.gui = "start"
  52.            blokada = false
  53.            exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-LOGIN')
  54.     exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-HASLO')
  55.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-LOGIN')
  56.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-HASLO')
  57.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-HASLO2')
  58.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-EMAIL')
  59.            playSound(sound, false)
  60.        end
  61.        
  62.        -- Info gui
  63.        if isMouseIn(screenW * 0.4611, screenH * 0.7703, screenW * 0.0878, screenH * 0.0444) and settings.gui == "info" then
  64.            settings.gui = "start"
  65.            blokada = false
  66.            exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-LOGIN')
  67.     exports['L-editbox']:destroyCustomEditbox('LOGOWANIE-HASLO')
  68.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-LOGIN')
  69.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-HASLO')
  70.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-HASLO2')
  71.     exports['L-editbox']:destroyCustomEditbox('REJESTRACJA-EMAIL')
  72.            playSound(sound, false)
  73.        end
  74.        
  75.     end
  76. end
  77.  
  78.  
  79. addEventHandler("onClientClick", root, client_onClick)
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