speaking anim - 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)
+--- Thread: speaking anim (
/showthread.php?tid=562989)
speaking anim -
IndependentGaming - 13.02.2015
Hello, where can I find something in the script when someone is speaking in the IC chat (T >> Speak)
that if you type in IC chat that you will do a speaking animation ?
Re: speaking anim -
CalvinC - 13.02.2015
Use
ApplyAnimation.
pawn Код:
ApplyAnimation(playerid, "PED", "IDLE_CHAT", ....);
Re: speaking anim -
IndependentGaming - 13.02.2015
and this must be placed under where ?
OnPlayerconnect ?
Re: speaking anim -
PaulDinam - 13.02.2015
No, you should learn the basics before approaching these kinda stuff.
Re: speaking anim -
CalvinC - 13.02.2015
In the function where he talks ofcourse, otherwise you will make the player do an animation when he connects to the server...
Re: speaking anim -
kinggta - 13.02.2015
u can use as a cmd :
for example:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/chat", true) == 0)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 1, 1, 1, 1, 1);
SendClientMessage(playerid, 0xAFAFAFAA, "talking");
return 1;
}
return 0;
}