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...")
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Description==
Gets or sets player name.
== Syntax ==
== Syntax ==


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


</source>
</source>
== Related Functions ==
{{Scripting/Squirrel/Functions/Player_Functions}}
[[Category:Scripting/Squirrel/Functions/Player_Functions]]

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.