OnClientPlayerJoin

From Multi Theft Auto: Wiki
Revision as of 20:40, 3 July 2007 by Xanarki (talk | contribs)
Jump to navigation Jump to search

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