OnPickupPickedUp: 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
mNo edit summary
No edit summary
Line 1: Line 1:
==Description==
Checks if a object is picked up.
Checks if a object is picked up.
==onPickupPickup==
==Syntax==
<code>function onPickupPickedUp( player, pickup )</code>
==Example==


<source lang="squirrel">
<source lang="squirrel">

Revision as of 10:51, 10 January 2017

Description

Checks if a object is picked up.

Syntax

function onPickupPickedUp( player, pickup )

Example

function onPickupPickedUp( player, pickup )
{

if ( pickup.Model == 408 ) 
 {
  MessagePlayer( "You earn 50$", player );
  player.Cash += 50;
 }
}