SA-MP Forums Archive
healed Players. - 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)
+--- Thread: healed Players. (/showthread.php?tid=461564)



healed Players. - BoU3A - 02.09.2013

how to make something like this for healed players




and chainsaw like this?.




Re: healed Players. - Konstantinos - 02.09.2013

CreatePickup


Re: healed Players. - BoU3A - 02.09.2013

more help please


Re: healed Players. - WopsS - 02.09.2013

do this
pawn Код:
new healpickup;
after when you create PickUp
pawn Код:
healpickup = CreatePickup(...);
and at OnPlayerPickUpPickUp put
pawn Код:
if(pickupid == healpickup)
{
SetPlayerHealth(playerid, 100);
return 1;
}



Re: healed Players. - Dragonsaurus - 02.09.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
What do you expect? It is self explanatory... I believe you have to click it... Not see it.


Re: healed Players. - BoU3A - 02.09.2013

thanks . and the chainsaw


Re: healed Players. - dannyk0ed - 02.09.2013

Quote:
Originally Posted by BoU3A
Посмотреть сообщение
thanks . and the chainsaw
Same thing, just make a new pickup and GivePlayerWeapon and find the ID for the chainsaw.


Re: healed Players. - Konstantinos - 02.09.2013

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
Same thing, just make a new pickup and GivePlayerWeapon and find the ID for the chainsaw.
I believe that when a player pickups it, it gives automatically the weapon or health/armour (depending on the pickup).