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
#2

What you want to do is that when the player takes the wine, walk like drunk and when passing a specific time return to normal?

SetTimer might work, I think.
Reply
#3

Well you could immediately set the drunk level to zero after him drinking, and then setting it to the value you desire?
Reply
#4

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
What you want to do is that when the player takes the wine, walk like drunk and when passing a specific time return to normal?

SetTimer might work, I think.
When player drinks wine he gots drunk lvl 2000, drunk animation and 3mins/180000ms is good time to set player normal. after 3mins when player gets normal clear players anim and set players drunk lvl 0. Sorry i am beginner help me.
Reply
#5

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)