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
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Syntax ==
== Syntax ==


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