Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function registroS(user, clave)
- if(addAccount(user, clave)) then
- outputChatBox("Usted se registro con exito!!", source, 0, 255, 0, true)
- triggerClientEvent(source,"cerrarPanel", source)
- logIn(source, getAccount(user, clave), clave)
- else
- outputChatBox("Esta cuenta ya existe!", source, 255, 0, 0, true)
- end
- end
- addEvent("RegistrarUsuario", true)
- addEventHandler("RegistrarUsuario", root, registroS)
- function loginS(user, clave)
- usuario = getAccount(user, clave)
- if (cuenta) then
- outputChatBox("Te has logeado con exito!!!", source, 255, 0, 0, true)
- triggerClientEvent (source, "cerrarPanel2", source)
- logIn(source, getAccount(user, clave), clave)
- else
- outputChatBox("No existe usuario o la clave es incorrecta!!", source, 255, 0, 0, true)
- end
- end
- addEvent("UserLogeado", true)
- addEventHandler("UserLogeado", root, registroS)
- addEventHandler("onPlayerJoin", root, function()
- triggerClientEvent(source, "abrirPanel", source)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement