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
No edit summary
No edit summary
 
Line 1: Line 1:
{{Scripting/Needs_Text}}
==Description==
 
Gets or sets player name.
== Syntax ==
== Syntax ==


<pre>player.Name</pre>
<pre>player.Name = string</pre>
== Example ==
== Example ==
<source lang=squirrel>
<source lang=squirrel>

Latest revision as of 10:55, 18 November 2017

Description

Gets or sets player name.

Syntax

player.Name = string

Example

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

Related Functions

Player Game Functions

These functions exist for compatibility with the R2 Squirrel server.