Jump to content

[Help] 2 Questions [ Help]


damien111

Recommended Posts

I need to ask two questions about scripting.

1. How can i trigger something to a player when he logs in, onPlayerLogin is server side and i dont know how to get the variable ive made to it, and use it to triggera gui just for that player.

2. How do i draw images onto something and put them ingame, do i have to edit the .txd of a object?

Link to comment

I tryed that, now i need some help , sorry bout this, but i think i did this wrong :P

ServerSide Snippit

    addEventHandler("onPlayerLogin", getRootElement ( ), 
  function() 
    triggerClientEvent ( "onLogin", source() ) 
  end 
) 
     

Clientside Snippit

  
  function loginStuff() 
    showCursor( true ) 
    guiSetVisible(GUIEditor.window[1],true) 
  end 
  addEvent( "onLogin", true ) 
addEventHandler( "onLogin", source(), loginStuff) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...