Drunk Questions
#1

Well, i think im going to do something like this.
Now i have checkpoint on bar what opens dialog for you.
PHP код:
            if(listitem == 0)
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
                
SendClientMessage(playerid,COLOR_YELLOW,"You have bought Wine for $15");
                
GivePlayerMoney(playerid,-15);
            } 
PHP код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
how i can make working like.
if(
IsPlayerDrunkLevel minium drunk level
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
}
else if(
IsPlayerDrunkLevel 1)
{
ClearAnimations(playerid);

SPECIAL_ACTION_DRINK_WINE give you wine bottle.
Can i change drunk level what wine bottle gave for me?
I want this script applying drunk walk when player is drunk and disabling when not.
Reply


Messages In This Thread
Drunk Questions - by Majava - 22.10.2012, 22:10
Re: Drunk Questions - by ThePhenix - 22.10.2012, 22:20
Re: Drunk Questions - by Hiddos - 22.10.2012, 22:35
Re: Drunk Questions - by Majava - 22.10.2012, 22:49
Re: Drunk Questions - by Majava - 26.10.2012, 07:10

Forum Jump:


Users browsing this thread: 1 Guest(s)