[HELP] Drunk animation
#1

Hey,

Some time ago, in one server, I saw drunk animation that you can control where ped goes. I mean not the "WALK_drunk" because this anim just walks straight, but there was the same animation, just you could control where to go. Any ideas what animation it was?

P.S. Sorry if you didn't understand something.
Reply
#2

Not sure about an animation, but https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
Reply
#3

I am not sure.
pawn Код:
if(strcmp(cmd, "/drunk", true) == 0) {
        LoopingAnim(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
        return 1;
    }
The last numbers are
pawn Код:
OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
}

//-------------------------------------------------

LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    gPlayerUsingLoopingAnim[playerid] = 1;
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
    TextDrawShowForPlayer(playerid,txtAnimHelper);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)