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
m (Added a little description)
mNo edit summary
Line 2: Line 2:
==onPickupPickup==
==onPickupPickup==


<source lang="squirrel">
function onPickupPickedUp( player, pickup )
function onPickupPickedUp( player, pickup )
{
{
Line 8: Line 9:
  {
  {
   MessagePlayer( "You earn 50$", player );
   MessagePlayer( "You earn 50$", player );
player.Cash += 50;
  player.Cash += 50;
  }
}
}
}
</source>

Revision as of 18:14, 2 May 2016

Checks if a object is picked up.

onPickupPickup

function onPickupPickedUp( player, pickup )
{

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