Controllable 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Controllable drunk animation? (
/showthread.php?tid=131763)
Controllable drunk animation? -
Michael_Sund - 04.03.2010
I used to play on a server that had the drunk animation and somehow we could press W key to change the direction to the direction we had the camera looking in. How is this possible? I've been thinking all the evening now and can't come up with any solution.
I would really appreciate any help. :P
Re: Controllable drunk animation? -
Fedee! - 04.03.2010
It's just like walking.
Re: Controllable drunk animation? -
Michael_Sund - 04.03.2010
I tried your script, Seif, but it didn't work. Nothing happens when I use it. :S I don't get any warnings or errors either.
Re: Controllable drunk animation? -
Michael_Sund - 05.03.2010
Sorry for bumping, but I really need help.
Re: Controllable drunk animation? -
Lejo - 05.03.2010
Quote:
Originally Posted by Michael_Sund
I tried your script, Seif, but it didn't work. Nothing happens when I use it. :S I don't get any warnings or errors either.
|
Are you sure you used the proper command for it?
Re: Controllable drunk animation? -
Michael_Sund - 05.03.2010
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/drunk", true) == 0)
{
SetPlayerWalkingStyle(playerid, 12);
return 1;
}
return 1;
}
ADDED: Hmm, I just tested again, when I had Simon's debug and the script with this command in I noticed that no commands worked, when I then unloaded the script with this in, the debug commands works, what is causing this? :S
Re: Controllable drunk animation? -
SWEMike - 05.03.2010
I still need help...
Ps. I'm the one who posted this thread, I accidentaly changed email to one that doesn't work and can't login anymore.
Re: Controllable drunk animation? -
SWEMike - 05.03.2010
Haha, I found what was wrong! xD It was the applyanimation settings that should have been
Код:
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
Anyway, this has been fixed, thanks anyway!