OnClientPlayerJoin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
__NOTOC__  
__NOTOC__  
This event is blahblah and is used for blahblah.
This event is when a player joins.


==Syntax==  
==Syntax==  
Line 12: Line 10:
This example does...
This example does...
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
function onPlayerJoin () --When the player joins
blabhalbalhb --abababa
showTextForPlayer ( source, 5000, 0, 0, 180, 1.5, "We be gangstas!" ) --Shows text for the player
--This line does this...
end
mooo
addEventHandler ( "onPlayerJoin", root, onPlayerJoin ) --Event is triggered
</syntaxhighlight>
</syntaxhighlight>

Revision as of 20:40, 3 July 2007

This event is when a player joins.

Syntax

void onClientPlayerJoin ( void )

Example

This example does...

function onPlayerJoin () --When the player joins
	showTextForPlayer ( source, 5000, 0, 0, 180, 1.5, "We be gangstas!" ) --Shows text for the player
end
addEventHandler ( "onPlayerJoin", root, onPlayerJoin ) --Event is triggered