OnPlayerJoin Server event

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.0.0

This callback is called when player joins to the server.


int pid
  • pid: The ID of player who joins to the server.


function onPlayerJoin(pid)
	sendMessageToPlayer(pid, 170, 104, 57, "Welcome!");

addEventHandler("onPlayerJoin", onPlayerJoin);

Related events