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
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
== Syntax ==
== Syntax ==


<pre>player.UniqueID</pre>
<pre>string player.UniqueID</pre>


== Example ==
== Example ==
Line 9: Line 9:
function onPlayerJoin( player )
function onPlayerJoin( player )
{
{
     ClientMessage( "pm >> Your Unique ID: " + player.UniqueID, player, 0, 255, 0 );
     ClientMessage( "pm >> Your Unique ID: " + player.UniqueID, player, 0, 255, 0 );
}
}
</source>
</source>
=== Notes ===
== Notes ==
Call [[Scripting/Squirrel/Events/Player/OnPlayerJoin|OnPlayerJoin]] were used in this example. More info about them in the corresponding pages.
 
Function [[Scripting/Squirrel/Functions/ClientMessage|ClientMessage]] and call [[onPlayerJoin]] were used in this example. More info about them in the corresponding pages.
 
== Related Functions ==
 
{{Scripting/Squirrel/Functions/Player Functions}}
[[Category:Scripting/Squirrel/Functions/Player_Functions]]

Latest revision as of 18:57, 30 January 2017

This will return player Unique ID.

Syntax

string player.UniqueID

Example

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

Notes

Function ClientMessage and call onPlayerJoin were used in this example. More info about them in the corresponding pages.

Related Functions

Player Game Functions

These functions exist for compatibility with the R2 Squirrel server.