Squirrel/Server/Functions/Misc/BanLUID
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|BanLUID}} This function bans the LUID provided == Syntax == <code>BanLUID( string LUID )</code> == Arguments == * '''LUID''' - The LUID in string to ban ...") |
Latest revision as of 00:56, 26 August 2014
This function bans the LUID provided
[edit] Syntax
BanLUID( string LUID )
[edit] Arguments
- LUID - The LUID in string to ban
[edit] 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 } }
[edit] Notes
The function BanLUID and call Squirrel/Server/Events/Player/onPlayerJoin were used in in this example. More info about them in corresponding pages.