Talking with hands... 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: Talking with hands... anim (
/showthread.php?tid=354601)
Talking with hands... anim -
PaulDinam - 27.06.2012
How can i make that when a player writes something anim of hands that talking will start.
without loop
Re: Talking with hands... anim -
[MM]RoXoR[FS] - 27.06.2012
pawn Код:
ApplyAnnimation(playerid, "PED","factalk", 1,0, 1,1,0,1);
Re: Talking with hands... anim -
vital2k - 27.06.2012
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
Put the designated animation under the OnPlayerText, obviously make sure the loop parameter is 0.
Source:
https://sampwiki.blast.hk/wiki/ApplyAnimation
Re: Talking with hands... anim -
milanosie - 27.06.2012
Here ya go.
pawn Код:
public OnPlayerText(playerid, text[])
{
new Len = strlen(text);
new chat = (Len * 150);
SetTimerEx("StopTalk", chat, false, "i", playerid);
ApplyAnimation(playerid, "PED","IDLE_CHAT", 4.1, 0, 1, 1, 1, chat, 0);
return 1;
}
{
ApplyAnimation(playerid, "PED", "endchat_01",4.0,1,0,0,0,1);
ClearAnimations(playerid);
return 1;
}