OnElementDataChange

From Multi Theft Auto: Wiki
Revision as of 03:27, 10 September 2006 by Ransom (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This fake function is for use with blah & blah and does blahblahblabhalbhl

This event will be triggered when someone joins the server

Example

This example gets the joining client's name and outputs a welcome message including his name once he joins


addEventHandler ( "onPlayerJoin", root, "onPlayerJoin" )
function onPlayerJoin ( )
	joinplayer = getClientName ( source )
	outputChatBox ( "Welcome " ..joinplayer.. " to the Server!" , source, 255, 255, 255 )
end