drinking with that one object?
#1



See where is white. How it?
Reply
#2

pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
Reply
#3

I have /drink, if i type /drink and he do drink anim and stopping. Do this
"SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DR INK_BEER);" add's if drink anims and stopping, then object removed?

"/drink > Drink Anim + Object > Stopping drink anim and object removed" - Example

Sorry bad english.
Reply
#4

Do you mean like..
The player will drink for like...7 seconds and then he will stop?
Or you want a command that will stop the animation?
Reply
#5

Quote:
Originally Posted by ►ϻozilla Fir3foж◄
Do you mean like..
The player will drink for like...7 seconds and then he will stop?
Or you want a command that will stop the animation?
... and the object will be removed. (If drink anim stopped)

Yes.
Reply
#6

Then you have to use timers.
On the top:
pawn Код:
forward 7secondsbeer(playerid)
OnPlayerCommandText:
pawn Код:
if (strcmp("/drink", cmdtext, true, 9) == 0)
    {
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
        SetTimer("7secondsbeer",7000,0);
        return 1;
    }
On the bottom:
pawn Код:
public 7secondsbeer(playerid)
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)