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


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

Revision as of 14:35, 25 July 2014

Syntax

player.Name

Example

function onPlayerCommand( player, cmd, text );
if ( cmd == "myname" )
   {
   MessagePlayer( "Your Nick is " + player.Name , player ); 
   }