Scripting/Squirrel/Functions/Player.UniqueID: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This will return player Unique ID. == Syntax == <pre>player.UniqueID</pre> == Example == <source lang=squirrel> function onPlayerJoin( player ) { ClientMessage( "pm >>...")
 
No edit summary
Line 13: Line 13:
</source>
</source>
=== Notes ===
=== Notes ===
Call [[Scripting/Squirrel/Events/Player/onPlayerJoin|onPlayerJoin]] were used in this example. More info about them in the corresponding pages.
Call [[Scripting/Squirrel/Events/Player/OnPlayerJoin|OnPlayerJoin]] were used in this example. More info about them in the corresponding pages.

Revision as of 04:21, 4 March 2015

This will return player Unique ID.

Syntax

player.UniqueID

Example

function onPlayerJoin( player )
{
     ClientMessage( "pm >> Your Unique ID: " + player.UniqueID, player, 0, 255,  0 );
}

Notes

Call OnPlayerJoin were used in this example. More info about them in the corresponding pages.