28.11.2009, 07:55
See where is white. How it?
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
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? |
forward 7secondsbeer(playerid)
if (strcmp("/drink", cmdtext, true, 9) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
SetTimer("7secondsbeer",7000,0);
return 1;
}
public 7secondsbeer(playerid)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
}