OnClientPlayerJoin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This event is | 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"> | ||
-- | 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 | |||
</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