Squirrel/Server/Functions/Misc/BanLUID

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function bans the LUID provided

[edit] Syntax

  1. BanLUID( string LUID )

[edit] Arguments

  • LUID - The LUID in string to ban

[edit] Example

This function will ban anybody called 'Bob'

  1.  
  2. function onPlayerJoin ( pPlayer ) {
  3.  
  4. if ( pPlayer.Name == "Bob" )
  5. {
  6. MessagePlayer ( "NO BOBS ALLOWED!", pPlayer );
  7. BanLUID ( pPlayer );
  8. KickPlayer ( pPlayer ); // Kick after ban his LUID, because BanLUID didn't disconnect the client after storage the banned LUID
  9. }
  10. }
  11.  

[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.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox