SA-MP Forums Archive
SPECIAL_ACTION_DRINK_BEER help - 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: SPECIAL_ACTION_DRINK_BEER help (/showthread.php?tid=99696)



SPECIAL_ACTION_DRINK_BEER help - Coicatak - 29.09.2009

When you use this, it puts a bottle in your hands. When you press fire key it make your character drink then get immedialtly drunk.

I have 3 questions:
* How to remove the bottle from hands?
* How to determinate when you get drunk? After 5 sips for example
* How to desactivate the fact that you get drunk when you take a sip? So that you can use SetPlayerDrinkLevel as you want.

Thanks in advance.


Re: SPECIAL_ACTION_DRINK_BEER help - Doppeyy - 29.09.2009

Quote:
Originally Posted by Coicatak
When you use this, it puts a bottle in your hands. When you press fire key it make your character drink then get immedialtly drunk.

I have 3 questions:
* How to remove the bottle from hands?
* How to determinate when you get drunk? After 5 sips for example
* How to desactivate the fact that you get drunk when you take a sip? So that you can use SetPlayerDrinkLevel as you want.

Thanks in advance.
The bottle is static so you cant remove it the only thing to do is respawn the player.
I would say use a timer for that.
SetPlayerDrunkLevel(playerid,0); I think you need to do it like this.

I hope this helped.

/Artix


Re: SPECIAL_ACTION_DRINK_BEER help - Karlip - 29.09.2009

Wrong, you can remove it by pressing enter.


Re: SPECIAL_ACTION_DRINK_BEER help - saiberfun - 29.09.2009

lol u just wanna delete everything?
why not just use setdrunklvl
by itsewelf if u delete everything anywayz


Re: SPECIAL_ACTION_DRINK_BEER help - Coicatak - 29.09.2009

Because with SetPlayerDrinkLevel you don't play any anim and the special drinking anim automatically increase your drunk level


Re: SPECIAL_ACTION_DRINK_BEER help - Sayaron - 29.09.2009

Quote:
Originally Posted by Coicatak
Because with SetPlayerDrinkLevel you don't play any anim and the special drinking anim automatically increase your drunk level
Its called SetPlayerDrunkLevel, not SetPlayerDrinkLevel


Re: SPECIAL_ACTION_DRINK_BEER help - Karlip - 29.09.2009

Wine is the only special animation that gives you drunk level automatically.


Re: SPECIAL_ACTION_DRINK_BEER help - saiberfun - 29.09.2009

Quote:
Originally Posted by Coicatak
Because with SetPlayerDrinkLevel you don't play any anim and the special drinking anim automatically increase your drunk level
u don't make any sense :/
like so u want just the anim?
or what`?*confused*

well if u do just want the anim search through this https://sampwiki.blast.hk/wiki/Animations
i dunno which it was.


Re: SPECIAL_ACTION_DRINK_BEER help - ded - 30.09.2009

Quote:
Originally Posted by Karlip
Wine is the only special animation that gives you drunk level automatically.
Incorrect, it's actually SPECIAL_ACTION_DRINK_BEER that gets you "drunk".


Re: SPECIAL_ACTION_DRINK_BEER help - Coicatak - 30.09.2009

Quote:
Originally Posted by [LRP
Sayaron ]
Quote:
Originally Posted by Coicatak
Because with SetPlayerDrinkLevel you don't play any anim and the special drinking anim automatically increase your drunk level
Its called SetPlayerDrunkLevel, not SetPlayerDrinkLevel
Yeah, little clerical error.

So only beer drinking gets you automatically drunk? I gonna test it, if it's true I'll use SPECIAL_ACTION_DRINK_WINE and a timer to set player drunk lvl.