SHARE
TWEET

RegisterDuction

a guest Mar 20th, 2016 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[REGISTER FUNCIONES]]--
  2.  
  3. function onRegisterKlink ()
  4.     local username = guiGetText(register_edit_user)
  5.     local password = guiGetText(register_edit_pass)
  6.     if username ~= "" and password ~= "" then
  7.         triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),username,password)
  8.     end
  9. end
  10. addEventHandler("onClientGUIClick",register_boton_crear,onRegisterKlink,false)
  11.  
  12. function Close_SetSkin()
  13.     if (guiRadioButtonGetSelected(sexo_hombre)) then
  14.         setElementModel(getLocalPlayer(), 2)
  15.         stopmusic()
  16.         guiSetVisible(fondo, false)
  17.         guiSetVisible(gui_register, false)
  18.         showCursor(false)
  19.     elseif (guiRadioButtonGetSelected(sexo_mujer)) then
  20.         setElementModel(getLocalPlayer(), 11)
  21.         stopmusic()
  22.         guiSetVisible(fondo, false)
  23.         guiSetVisible(gui_register, false)
  24.         showCursor(false)
  25.     end
  26. end
  27. addEvent("closeRegister", true)
  28. addEventHandler("closeRegister", getRootElement(), Close_SetSkin)
  29.  
  30. function registroFallido()
  31.     playerror()
  32.     guiSetText(error_text, "La cuenta ingresada ya existe, intente nuevamente.")
  33.     guiSetVisible(gui_error, true)
  34. end
  35. addEvent("errorRegistro", true)
  36. addEventHandler("errorRegistro", getRootElement(), registroFallido)
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