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