Posts: 674
Threads: 163
Joined: Oct 2012
Reputation:
0
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 ?
Posts: 674
Threads: 163
Joined: Oct 2012
Reputation:
0
and this must be placed under where ?
OnPlayerconnect ?
Posts: 887
Threads: 251
Joined: Jun 2011
Reputation:
0
No, you should learn the basics before approaching these kinda stuff.
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
In the function where he talks ofcourse, otherwise you will make the player do an animation when he connects to the server...
Posts: 52
Threads: 16
Joined: Apr 2013
Reputation:
0
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;
}