Jump to content

fix . .


top sniper

Recommended Posts

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
https://wiki.multitheftauto.com/wiki/SetPlayerNametagText

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).

aha .. is there any way to set the tag .. because when i use setplayernick i cant set it to Arabic nick .

Link to comment
https://wiki.multitheftauto.com/wiki/SetPlayerNametagText

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).

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
https://wiki.multitheftauto.com/wiki/SetPlayerNametagText

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).

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
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
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

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...