Scripting/Squirrel/Functions/Pickup.Model: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Luis labarca (talk | contribs) (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...") |
Luis labarca (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
---- | |||
Pickup.Model | Pickup.Model | ||
Here you can get some models | 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 | Example |
Revision as of 22:45, 21 December 2015
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; }
}