Guest User

Untitled

a guest
Dec 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. -- Funktionen
  2.         function registeraccount()
  3.         local pw1 = guiGetText ( eGUIEditor_Edit[2] )
  4.         local pw2 = guiGetText ( eGUIEditor_Edit[3] )
  5.         outputChatBox("test", 255, 0, 0)
  6.         if pw1 == pw2 then
  7.             outputChatBox("test2", 255, 0, 0)
  8.             local accname = guiGetText ( eGUIEditor_Edit[1] )
  9.             local accpw = guiGetText ( GUIEditor_Edit[2] )
  10.             triggerServerEvent ( "onMyPlayerRegister", getLocalPlayer(), accname, accpw )
  11.         else
  12.         outputChatBox("Die Passwörter stimmen nicht überein!", 255, 0, 0)
  13.         end
  14.         end
  15.  
  16.         addEventHandler ( "onClientGUIClick", regbutton, registeraccount )
Add Comment
Please, Sign In to add comment