top sniper Posted March 20, 2012 Share Posted March 20, 2012 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(0.3499,0.3607,0.2401,0.1771,"تغير الاسم 1.0",true)nick = guiCreateEdit(85,50,169,37,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(111,102,106,25,"تغير",false,GUIEditor_Window[1]) getnick = guiGetText(nick) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then local text = guiGetText ( nick ) setPlayerNametagText (source,text) end end ) Link to comment
GTX Posted March 20, 2012 Share Posted March 20, 2012 Type /debugscript 3 and tell us what's the problem Link to comment
top sniper Posted March 20, 2012 Author Share Posted March 20, 2012 Type /debugscript 3 and tell us what's the problem debug Does not show as i have a problem Link to comment
Al3grab Posted March 20, 2012 Share Posted March 20, 2012 https://wiki.multitheftauto.com/wiki/Set ... ametagText This will change the text of a player's nickname in the world to something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world (you will see his original nickname in the scoreboard and will refer to his original name in scripts). Link to comment
top sniper Posted March 20, 2012 Author Share Posted March 20, 2012 https://wiki.multitheftauto.com/wiki/SetPlayerNametagTextThis will change the text of a player's nickname in the world to something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world (you will see his original nickname in the scoreboard and will refer to his original name in scripts). aha .. is there any way to set the tag .. because when i use setplayernick i cant set it to Arabic nick . Link to comment
Absence2 Posted March 20, 2012 Share Posted March 20, 2012 https://wiki.multitheftauto.com/wiki/SetPlayerName Only ASCII characters between 33 and 126 are allowed (basic latin): !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ Link to comment
TAPL Posted March 20, 2012 Share Posted March 20, 2012 https://wiki.multitheftauto.com/wiki/SetPlayerNametagTextThis will change the text of a player's nickname in the world to something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world (you will see his original nickname in the scoreboard and will refer to his original name in scripts). aha .. is there any way to set the tag .. because when i use setplayernick i cant set it to Arabic nick . you can setElementData and then edit scoreboard and make the name come from the element data.. Link to comment
Al3grab Posted March 20, 2012 Share Posted March 20, 2012 https://wiki.multitheftauto.com/wiki/SetPlayerNametagTextThis will change the text of a player's nickname in the world to something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world (you will see his original nickname in the scoreboard and will refer to his original name in scripts). aha .. is there any way to set the tag .. because when i use setplayernick i cant set it to Arabic nick . you can setElementData and then edit scoreboard and make the name come from the element data.. + using "onPlayerChat" event you can output the other name instead of the original one Link to comment
X-SHADOW Posted March 20, 2012 Share Posted March 20, 2012 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(0.3499,0.3607,0.2401,0.1771,"تغير الاسم 1.0",true)nick = guiCreateEdit(85,50,169,37,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(111,102,106,25,"تغير",false,GUIEditor_Window[1]) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then triggerServerEvent ("Nick", getLocalPlayer()) end end ) and you have to make the serverSide try Link to comment
TAPL Posted March 20, 2012 Share Posted March 20, 2012 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(0.3499,0.3607,0.2401,0.1771,"تغير الاسم 1.0",true)nick = guiCreateEdit(85,50,169,37,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(111,102,106,25,"تغير",false,GUIEditor_Window[1]) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then triggerServerEvent ("Nick", getLocalPlayer()) end end ) and you have to make the serverSide try server side for what? setElementData synced with all clients Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now