Scripting/Squirrel/Functions/Player.Frozen

This wiki is using an old backup from 2020
Some information may be old/missing

Syntax
player.IsFrozen = true; player.IsFrozen = false;
Example
function onPlayerCommand( player, cmd, text ) {
if ( cmd == "free" ) { local plr = FindPlayer( text ); // text is the name of the player if ( !plr ) MessagePlayer( "Error: Player '" + text + "' is not online.", player );//Check status of player else player.IsFrozen = true;//Finally freeze him }
OR
if ( cmd == "free" )
{ local plr = FindPlayer( 0 ); // id of the player if ( !plr ) MessagePlayer( "Error: Player '" + text + "' is not online.", player );//Check status of player else player.IsFrozen = true;//Finally freeze him }
}
Note - FindPlayer can be worked out with text/name or id of the player
