BanLUID
From Liberty Unleashed Wiki
This function bans the LUID provided
Syntax
BanLUID( string LUID )
Arguments
- LUID - The LUID in string to ban
Example
This function will ban anybody called 'Bob'
function onPlayerJoin ( pPlayer ) { if ( pPlayer.Name == "Bob" ) { MessagePlayer ( "NO BOBS ALLOWED!", pPlayer ); BanLUID ( pPlayer ); KickPlayer ( pPlayer ); // Kick after ban his LUID, because BanLUID didn't disconnect the client after storage the banned LUID } }
Notes
The function BanLUID and call Squirrel/Server/Events/Player/onPlayerJoin were used in in this example. More info about them in corresponding pages.