Adding pickup/object to players head ?! :/
#1

Hey guys,
does anybody knows how to add health pickup to players head for about 1-2 seconds when he loses
a little health or armour like in this video:


[ame]http://www.youtube.com/watch?v=D5o5ziF2ehQ[/ame]

Reply
#2

Anyone ?
Reply
#3

Wow, this is some nice stuff., I would like to know this also
Reply
#4

First of all you have to check if health or armor goes down, either with a timer or in OnPlayerUpdate. Get the health, compare it to a global variable and then store it into that variable, so you have the last health of the player.

If it decreases, create a object (https://sampwiki.blast.hk/wiki/CreateObject), the health or armor thing, check the object id list in wiki.
To get it over the player, use AttachObjectToPlayer (https://sampwiki.blast.hk/wiki/AttachObjectToPlayer) with offsetz=2 or 3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)