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: Chat animation (
/showthread.php?tid=179737)
Chat animation -
Hamza' - 28.09.2010
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Wired[playerid] == 1)
{
SendClientMessage(playerid, 0xFF3333AA, "You are wired and may not speak!");
return 0;
}
if(strlen(text) >= 5)
{
ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,1,1,1,1,6000,1);
}
if(strlen(text) >= 10 && strlen(text) <= 5)
{
ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,1,1,1,1,10000,1);
}
return 1;
}
Wanted to make it clear, but it sometimes works, some no..
Some help please
Re: Chat animation -
<Weponz> - 28.09.2010
You want them to do a speaking animation when thay are muted?
Re: Chat animation -
Hamza' - 28.09.2010
No! Ignore the "wired"..
I want them to use animation chat when they speak..
Re: Chat animation -
[XST]O_x - 28.09.2010
pawn Код:
if(strlen(text) >= 10 && strlen(text) <= 5)
How in the world could that be possible?
I don't know a number that is bigger than 10 and smaller than 5.
Re: Chat animation -
Hamza' - 28.09.2010
Quote:
Originally Posted by [XST]O_x
pawn Код:
if(strlen(text) >= 10 && strlen(text) <= 5)
How in the world could that be possible?
I don't know a number that is bigger than 10 and smaller than 5.
|

Than tell me atleast

and it was uncompleted anyways
Re: Chat animation -
<Weponz> - 28.09.2010
EDIT: lol realised wat callback it was xD
Re: Chat animation -
Hamza' - 28.09.2010
So, no solution ?!
Re: Chat animation -
[XST]O_x - 28.09.2010
What are you trying to check in this line:
pawn Код:
if(strlen(text) >= 10 && strlen(text) <= 5)
?
Maybe you meant:
pawn Код:
if(strlen(text) >= 5 &&strlen(text) <= 10)
?