Scripting/Squirrel/Functions/Player.Name

From Vice City Multiplayer
Jump to navigation Jump to search

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.