PlayerJoin: Difference between revisions
No edit summary |
|||
| Line 24: | Line 24: | ||
}); | }); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</td> | </td> | ||
</tr> | </tr> | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
Revision as of 22:01, 27 December 2016
This event is triggered when a player joins the server.
Parameters
- player - player, which joined to the server.
Example
<thead> </thead> <tbody> </tbody>| Server-side |
|---|
function playerJoinHandler(player) {
console.log(player.name + " join.");
}
mp.events.add({
"playerJoin": playerJoinHandler
});
|