Scripting/Squirrel/Functions/Player.GreenScanlines: 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>SetGreenScanLines( player, true ); SetGreenScanLines( player, false );</pre> <source lang=squirrel> function onPlayerCommand( player, cmd, text ); if ( cmd...")
 
Line 3: Line 3:
<pre>SetGreenScanLines( player, true );
<pre>SetGreenScanLines( player, true );
SetGreenScanLines( player, false );</pre>
SetGreenScanLines( player, false );</pre>
 
== Example ==
<source lang=squirrel>
<source lang=squirrel>
function onPlayerCommand( player, cmd, text );
function onPlayerCommand( player, cmd, text );

Revision as of 08:39, 25 July 2014

Syntax

SetGreenScanLines( player, true );
SetGreenScanLines( player, false );

Example

function onPlayerCommand( player, cmd, text );
if ( cmd == "greenlineson" )
   {
   SetGreenScanLines( player, true );
   }
if ( cmd == "greenlinesoff" )
   {
   SetGreenScanLines( player, false);
   }