drinking with that one object?
#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


Messages In This Thread
drinking with that one object? - by Mechscape - 28.11.2009, 07:55
Re: drinking with that one object? - by [XST]O_x - 28.11.2009, 08:01
Re: drinking with that one object? - by Mechscape - 28.11.2009, 08:04
Re: drinking with that one object? - by [XST]O_x - 28.11.2009, 08:06
Re: drinking with that one object? - by Mechscape - 28.11.2009, 08:07
Re: drinking with that one object? - by [XST]O_x - 28.11.2009, 08:12

Forum Jump:


Users browsing this thread: 4 Guest(s)