Player Class
#1

how to make them have an animation?

Like on class selection, they can do anims? how would i do that?
Reply
#2

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

Use OnPlayerRequestClass. It will look something like this.
pawn Код:
public OnPlayerRequestClass(playerid, classid) {
  // Your animation code. - http://www.wiki.sa-mp.com/wiki/ApplyAnimation -
  return 1;
}
Reply
#4

Im not stupid.


ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,1,1, 1,1,1);


is the animation i want to apply, but when i put it by the class selection stuff, it dont work.
Quote:
Originally Posted by Carlton
Use OnPlayerRequestClass. It will look something like this.
pawn Код:
public OnPlayerRequestClass(playerid, classid) {
  // Your animation code. - http://www.wiki.sa-mp.com/wiki/ApplyAnimation -
  return 1;
}
and when i hit post, said you posted,

and that dont work either :/
Reply
#5

Quote:
Originally Posted by iLcke
Im not stupid.


ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,1,1, 1,1,1);


is the animation i want to apply, but when i put it by the class selection stuff, it dont work.
Quote:
Originally Posted by Carlton
Use OnPlayerRequestClass. It will look something like this.
pawn Код:
public OnPlayerRequestClass(playerid, classid) {
  // Your animation code. - http://www.wiki.sa-mp.com/wiki/ApplyAnimation -
  return 1;
}
and when i hit post, said you posted,

and that dont work either :/
I never said you're stupid. If you did put it in there and the animation doesn't work then you need to Pre-load the animation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)