SPECIAL_ACTION_DRINK_BEER help
#1

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.
Reply
#2

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
Reply
#3

Wrong, you can remove it by pressing enter.
Reply
#4

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

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

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
Reply
#7

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

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.
Reply
#9

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".
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)