Squirrel/Server/Functions/Misc/BanPlayer
From Liberty Unleashed Wiki
(Difference between revisions)
m |
m (Squirrel/Functions/Misc/BanPlayer moved to Squirrel/Server/Functions/Misc/BanPlayer: server-side scripting) |
Revision as of 04:14, 14 November 2009
This function bans a player from the server
Syntax
bool BanPlayer( player plr )
Arguments
- plr - Pointer of the player to kick
Example
This will ban anybody called 'Bob'
function OnPlayerJoin( player ) { if ( player.Name == "Bob" ) { MessagePlayer( "NO BOBS ALLOWED!", player ); BanPlayer( player ); } }
Notes
The calls OnPlayerJoin and MessagePlayer were used in in this example. More info about there in the corresponding pages.