Scripting/Server/Classes/Player/ForceToSpawnScreen
Sends the player back to the class selection screen.
Contents
Syntax
player.ForceToSpawnScreen()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "forcetospawnscreen" )
{
player.ForceToSpawnScreen();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- player.SetWeapon
- player.ClearWeapons
- player.GetWeaponAmmoAtSlot
- player.SetAnim
- player.RemoveLimb
- player.RemoveFromVehicle
- player.Spawn
- player.RespawnAt
- player.CheckFileHash
Section: Player
Categories: Server methods | Player