22.10.2012, 22:10
Well, i think im going to do something like this.
Now i have checkpoint on bar what opens dialog for you.
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.
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);
}
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.