Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. ----------------------- CLIENT SIDE
  2. addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showLogin )
  3. function onClicked()
  4.     player_username = guiGetText( GDI['username:edit'])
  5.     player_password = guiGetText( GDI['password:edit'])
  6.     triggerServerEvent("checkplayer",getLocalPlayer(),player_username,player_password)
  7.     outputChatBox("Wysylam trigger")
  8. end
  9. ----------------------- SERVER SIDE
  10.  
  11. function zapytanie( player_username,player_password )
  12. outputChatBox("TRIGGER DZIALA")
  13. -- GDI['username:edit'] it is a player wrote login
  14. -- GDI['password:edit'] it is a player wrote password
  15. end
  16. addEvent( "checkplayer", true )
  17. addEventHandler( "checkplayer", getRootElement(), zapytanie )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement