BanLUID

From Liberty Unleashed Wiki
Revision as of 00:56, 26 August 2014 by XMerkel 2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function bans the LUID provided

Syntax

  1. BanLUID( string LUID )

Arguments

  • LUID - The LUID in string to ban

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.  

Notes

The function BanLUID and call Squirrel/Server/Events/Player/onPlayerJoin were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox