Sign in to follow this  
FlyingSpoon

RPG/RP Script Help!?!

Recommended Posts

Well here is my code so, far. I am starting on wards from Basic Roleplay updated by Socialz and Anubhav.

addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(188, 157, 452, 187, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.label[1] = guiCreateLabel(20, 35, 103, 28, "Character Name :", false, GUIEditor.window[1]) 
        GUIEditor.edit[1] = guiCreateEdit(128, 31, 166, 26, "Firstname_Lastname", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(343, 139, 94, 38, "Spawn", false, GUIEditor.window[1])     
    end 
) 

Would I use

guiGetText( GUIEditor.edit[1] )

and how would I set the player's nick to Firstname_Lastname ??

Share this post


Link to post
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        
        Window = guiCreateWindow(188, 157, 452, 187, "", false) 
        guiWindowSetSizable(Window, false) 
        guiSetVisible (window ,false) 
  
       label = guiCreateLabel(20, 35, 103, 28, "Character Name :", false, Window) 
       edit = guiCreateEdit(128, 31, 166, 26, "Firstname_Lastname", false, Window) 
       button = guiCreateButton(343, 139, 94, 38, "Spawn", false, Window)     
  
    end 
) 

Share this post


Link to post

No, no.

You don't understand me.

What I was meant to say is when the player writes their Firstname_Lastname in the edit box, and press 'Spawn'

their name will change into the Firstname_Lastname they chosen.

Any ideas?

Share this post


Link to post

Oh thanks for using it.

You must set the nametag text.

  
setPlayerNametagText 
  

Good luck!

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.