Do something when player makes drinking anim - 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: Do something when player makes drinking anim (
/showthread.php?tid=337860)
Do something when player makes drinking anim -
Jstylezzz - 28.04.2012
Like the topic title says, i like to find out if it's possible, to, for example, add health/set drunk level, when a player does a drinking anim.
Is this possible?
Re: Do something when player makes drinking anim -
[HiC]TheKiller - 28.04.2012
There must be something that triggers the drinking animation in the first place. Just add health / set drunk level then or just set a variable / timer when you set the anim.
Re: Do something when player makes drinking anim -
Jstylezzz - 28.04.2012
Quote:
Originally Posted by [HiC]TheKiller
There must be something that triggers the drinking animation in the first place. Just add health / set drunk level then or just set a variable / timer when you set the anim.
|
ok, thanks, i will look into this.
Now i remember, it's the mouse button, and if you set something like this, drinking = 1, and then use onplayerkeystatechange...