M MY Multiplayer: Wiki
Side
Kind

isPlayerSpawned

Server

Tells whether the player has been placed in the world by spawnPlayer.

bool isPlayerSpawned(player player)

Parameters

NameTypeDescription
playerplayerThe player.

Returns

true if the player is spawned, false otherwise or if the element is not a player.

Example

addCommandHandler("spawn", function(player)
    if not isPlayerSpawned(player) then
        spawnPlayer(player, 2495.1, -1687.4, 13.5)
    end
end)

See also