animations
#1

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 ...
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerCommandText
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/Animations
Reply
#3

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

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);
Reply
#5

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...)
Reply
#6

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;
}
Reply
#7

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
Reply
#8

You're welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)