Scripting/Squirrel/Functions/Pickup.Model: 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 " Pickup.Model Here you can get some models http://wiki.vc-mp.org/wiki/Pickup_Models I will use in this example the id 366 model is the health Example function onPickup...")
 
No edit summary
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Syntax'''
<pre>pickup.Model</pre>


Pickup.Model


Here you can get some models [[http://wiki.vc-mp.org/wiki/Pickup_Models]] I will use in this example the id 366 model is the health


Example
Here you can get some models http://wiki.vc-mp.org/wiki/Pickup_Models
I will use in this example the id 366 model is the health
 
'''Example'''
<source lang=squirrel>




Line 19: Line 23:


}
}
</source>
== Related Functions ==
{{Scripting/Squirrel/Functions/Pickup_Functions}}
[[Category:Scripting/Squirrel/Functions/Pickup_Functions]]

Latest revision as of 18:37, 30 January 2017

Syntax

pickup.Model


Here you can get some models http://wiki.vc-mp.org/wiki/Pickup_Models I will use in this example the id 366 model is the health

Example

function onPickupPickedUp( player, pickup )
{

if(pickup.Model == 366)
{
pickup.RespawnTime = 5000;
MessagePlayer( "you've got your energina 100%", player );
Message( "[#7CFC00] player "+player.Name+" has recovered its energy 100% ");
player.Health = 100;
}

}

Related Functions