SA-MP Forums Archive
Local Chat Animation - 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: Local Chat Animation (/showthread.php?tid=84857)



Local Chat Animation - MarqueZ92 - 03.07.2009

Hey

As the title says, i want that if somebody types something in local chat at a dialog animation (that the hands move/shake or what ever)

I used /l before, but now its just normal if somebody write in the chat box without any CMD, that they do the animation.

Thanks, regards.


Re: Local Chat Animation - HydraX - 03.07.2009

Put the Animation you want

Under OnPlayerText




Re: Local Chat Animation - MarqueZ92 - 03.07.2009

Quote:
Originally Posted by HydraX [hydrablast.smfnew.com
]
Put the Animation you want

Under OnPlayerText

Okay i just need the animation name of the hand movements.


Re: Local Chat Animation - Serediucr - 03.07.2009

i want that too so +1


Re: Local Chat Animation - MarqueZ92 - 03.07.2009

I found it out how to do it and also the Animation ID but i need it to stop after 2-3 Seconds. Its looping all the time.

pawn Код:
ApplyAnimation(playerid,"PED","IDLE_chat ",4.1,1,1,1,1,1);



Re: Local Chat Animation - MenaceX^ - 03.07.2009

Either stop it by ClearAnimations.


Re: Local Chat Animation - MarqueZ92 - 03.07.2009

Quote:
Originally Posted by Ben^
Either stop it by ClearAnimations.
Wont i have to put in a timer?


Re: Local Chat Animation - MarqueZ92 - 03.07.2009

I added a Timer, but i get an error.

pawn Код:
forward StopTalking();
pawn Код:
SetTimer("StopTalking", 7000, 0);
pawn Код:
public StopTalking()
{
  ClearAnimations(playerid);
}



Re: Local Chat Animation - MarqueZ92 - 03.07.2009

Quote:
Originally Posted by MarqueZ92
I added a Timer, but i get an error.

pawn Код:
forward StopTalking();
pawn Код:
SetTimer("StopTalking", 7000, 0);
pawn Код:
public StopTalking()
{
 ClearAnimations(playerid);
}
The Error

pawn Код:
C:\Users\pwnz0r\Desktop\StrikerZ SF Roleplay\gamemodes\PENSF.pwn(1773) : error 017: undefined symbol "playerid"



Re: Local Chat Animation - Serediucr - 03.07.2009


you can
ApplyAnimation(playerid,"PED","IDLE_chat ",4.1,0,1,1,1,1);