SA-MP Forums Archive
animations - 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: animations (/showthread.php?tid=119742)



animations - smuf_albert95 - 09.01.2010

How can I add animations?

...and when a player write "/animlist"

to appear the list with ANIMATIONS can somone help me out with this please ...


Re: animations - Correlli - 09.01.2010

https://sampwiki.blast.hk/wiki/OnPlayerCommandText
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/Animations


Re: animations - smuf_albert95 - 09.01.2010

i understand the first 2 LINKS bbut the last is difficult...that im trying to find out.....


Re: animations - Correlli - 09.01.2010

It's just a list of animations from animation librarys.

Like:
Quote:
ped
* ..
* WALK_drunk
* ..
pawn Код:
ApplyAnimation(playerid, "ped", "WALK_drunk", 4.1, 1, 1, 1, 1, 1);



Re: animations - smuf_albert95 - 09.01.2010

i understood that...I didn't understood what to put at "onplayercommand" for example:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/drunk", true))

(AND AT THE NEXT STEPS, I DON'T KNOW...)


Re: animations - Correlli - 09.01.2010

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/drunk", true) == 0) return ApplyAnimation(playerid, "ped", "WALK_drunk", 4.1, 1, 1, 1, 1, 1);
  return false;
}



Re: animations - smuf_albert95 - 09.01.2010

Quote:
Originally Posted by Don Correlli
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/drunk", true) == 0) return ApplyAnimation(playerid, "ped", "WALK_drunk", 4.1, 1, 1, 1, 1, 1);
  return false;
}
thx thx



Re: animations - Correlli - 09.01.2010

You're welcome.