- Documentation
- Server functions
- isPlayerInWorld
Function
isPlayerInWorld
Checks whether the player has entered the world (after the first spawn).
Syntax
bool isPlayerInWorld(player thePlayer)Arguments
thePlayerplayer- The player.
Returns
true after the first spawn.
Example
for _, p in ipairs(getPlayers()) do
if isPlayerInWorld(p) then
outputChatBox("Wydarzenie zaczyna się!", p)
end
end