[HELP] Drunk animation - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Drunk animation (
/showthread.php?tid=290315)
[HELP] Drunk animation -
Dirkon - 15.10.2011
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.
Re: [HELP] Drunk animation -
Redgie - 15.10.2011
Not sure about an animation, but
https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
Re: [HELP] Drunk animation -
Kostas' - 15.10.2011
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);
}