Talk:OnClientChangeNick: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: I've made a page according to some stuff I know, but I can't get the event to work, so if anyone knows how to make a nice working example it'd be great if you could add it)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
I've made a page according to some stuff I know, but I can't get the event to work, so if anyone knows how to make a nice working example it'd be great if you could add it
I've made a page according to some stuff I know, but I can't get the event to work, so if anyone knows how to make a nice working example it'd be great if you could add it --[[User:Jumba|Jumba]] 16:54, 10 February 2008 (CST)
 
<syntaxhighlight lang="lua">function ClientChangeNick ( oldNick, newNick )
outputChatBox ( "hi" )
outputChatBox ( "* "..oldNick.." is now known as "..newNick, root, 255, 180, 0 )
end
addEventHandler ( "onClientChangeNick", root, ClientChangeNick )</syntaxhighlight>
 
This doesn't work I think its broke. --[[User:Ransom|Ransom]] 03:43, 11 March 2008 (CDT)

Latest revision as of 08:43, 11 March 2008

I've made a page according to some stuff I know, but I can't get the event to work, so if anyone knows how to make a nice working example it'd be great if you could add it --Jumba 16:54, 10 February 2008 (CST)

function ClientChangeNick ( oldNick, newNick )
	outputChatBox ( "hi" )
	outputChatBox ( "* "..oldNick.." is now known as "..newNick, root, 255, 180, 0 )
end
addEventHandler ( "onClientChangeNick", root, ClientChangeNick )

This doesn't work I think its broke. --Ransom 03:43, 11 March 2008 (CDT)