Help with pickup - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with pickup (
/showthread.php?tid=163935)
Help with pickup -
FireCat - 29.07.2010
How can i like when someone goes to that pickup it heals them?
Re: Help with pickup -
Conroy - 29.07.2010
Use SetPlayerHealth(playerid, Float:health) on OnPlayerPickupPickup.
Re: Help with pickup -
ikey07 - 29.07.2010
HEALPICKUP = CreatePickup....
onplayerpickuppickup
pawn Код:
if(pickupid == HEALPICKUP)
{
SetPlayerHealth(playerid,100);
}
Re: Help with pickup -
Mike Garber - 29.07.2010
under OnPlayerPickupPickup, SetPlayerHealth ..
pawn Код:
// TOP
new healthpickup;
// ONGAMEMODEINIT
healthpickup = CreatePickup(....
// ONPLAYERPICKUPPICKUP
if ( pickupid == healthpickup )
{
SetPlayerHealth(playerid, 100);
}
Re: Help with pickup -
FireCat - 29.07.2010
didnt work D:
Re: Help with pickup - Guest3598475934857938411 - 31.07.2010
It should work i tried it !