Squirrel/Server/Functions/Players/LUID

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
{{Squirrel/Title|LUID}}
+
{{Squirrel/Title|Player.LUID}}
 
This function returns the Player LUID
 
This function returns the Player LUID
  

Latest revision as of 00:51, 26 August 2014

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

This function returns the Player LUID

[edit] Syntax

  1. Player.LUID

[edit] Example

This command shows your UID.

  1.  
  2. function onPlayerCommand ( pPlayer, szCommand, szParams ) {
  3.  
  4. switch ( szCommand ) {
  5.  
  6. case "myuid": {
  7.  
  8. MessagePlayer ( "Your UID is: " + pPlayer.LUID, pPlayer );
  9.  
  10. return;
  11. }
  12. }
  13. }
  14.  

[edit] Notes

The function LUID and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox