SA-MP Forums Archive
Detect animation or increase hp - 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: Detect animation or increase hp (/showthread.php?tid=204543)



Detect animation or increase hp - Deathwing - 29.12.2010

I want to a function to detect if the player hp is increasing something like if (GetPlayerHealth(playerid, health+5)) (this don't work ) ) or a function to detect animation VEND_Drink_P for example i would prefer the hp incresing but ....
pls help 3
P.S. I will release the script if i can get it to work( a vomit script ).


Re: Detect animation or increase hp - Infamous - 29.12.2010

The vending action is known as a Special Action and I believe it can be detected using GetPlayerSpecialAction.

Take a look: Special Actions


Re: Detect animation or increase hp - Deathwing - 29.12.2010

Unfortunately , isn't a special action "SPECIAL_ACTION_DRINK_SPRUNK - Will give the player a sprunk bottle to drink from " but thanks for fast reaction


Re: Detect animation or increase hp - Infamous - 29.12.2010

If your setting an animation couldn't you just set a var when it is used and then use the var to detect it?


Re: Detect animation or increase hp - Deathwing - 29.12.2010

Solved