Scripting/Squirrel/Functions/Player.Armour: 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.Armour</pre> <source lang=squirrel> function onPlayerCommand( player, cmd, text ); if ( cmd == "armour" ) { player.Armour = 200; MessagePla...")
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:


<pre>player.Armour</pre>
<pre>player.Armour</pre>
 
== Example ==
The following example send a personal message saying '''Hey you, have fun here'''!:
<source lang=squirrel>
<source lang=squirrel>
function onPlayerCommand( player, cmd, text );
function onPlayerCommand( player, cmd, text );
if ( cmd == "armour" )
if ( cmd == "armour" )
  {
    {
  player.Armour = 200;
    player.Armour = 200;
  MessagePlayer( " Done " , player );  
    MessagePlayer( " Done " , player );
  }
    }
 
</source>


== Related Functions ==


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

Latest revision as of 18:47, 30 January 2017

Syntax

player.Armour

Example

The following example send a personal message saying Hey you, have fun here!:

function onPlayerCommand( player, cmd, text );
if ( cmd == "armour" )
    {
    player.Armour = 200;
    MessagePlayer( " Done " , player );
    }

Related Functions

Player Game Functions

These functions exist for compatibility with the R2 Squirrel server.