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



Player Class - iLcke - 28.03.2010

how to make them have an animation?

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


Re: Player Class - [HiC]TheKiller - 28.03.2010

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


Re: Player Class - Carlton - 28.03.2010

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



Re: Player Class - iLcke - 28.03.2010

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 :/


Re: Player Class - Carlton - 28.03.2010

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.