Scripting/Squirrel/Functions/Player.ID: 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 "== Syntax == <pre>player.ID</pre> <source lang=squirrel> function onPlayerCommand( player, cmd, text ); if ( cmd == "myid" ) { MessagePlayer( "Your ID is " + player.ID...")
 
Line 2: Line 2:


<pre>player.ID</pre>
<pre>player.ID</pre>
 
== Example ==
<source lang=squirrel>
<source lang=squirrel>
function onPlayerCommand( player, cmd, text );
function onPlayerCommand( player, cmd, text );

Revision as of 08:39, 25 July 2014

Syntax

player.ID

Example

function onPlayerCommand( player, cmd, text );
if ( cmd == "myid" )
   {
   MessagePlayer( "Your ID is " + player.ID , player ); 
   }