Scripting/Squirrel/Functions/Player.Ammo: 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 "== Example == Player.Cash <source lang=squirrel> function onPlayerCommand( player, cmd, text ); if ( cmd == "ammo" ) { MessagePlayer( " Your Ammo " + player.Ammo , player )...")
 
Line 1: Line 1:
== Syntax ==
<pre>player.Ammo</pre>
== Example ==
== Example ==
Player.Cash
Player.Cash

Revision as of 09:24, 25 July 2014

Syntax

player.Ammo

Example

Player.Cash

function onPlayerCommand( player, cmd, text );
	if ( cmd == "ammo" )
	{
	MessagePlayer( " Your Ammo " + player.Ammo , player );
	}