chat animation = frozen - 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: chat animation = frozen (
/showthread.php?tid=631956)
chat animation = frozen -
noPANDA - 07.04.2017
Код:
public OnPlayerText(playerid, text[])
{
if(pInfo[playerid][IsPlayerMuted] == 1)
{
SendClientMessage(playerid, COLOR_RED, "SERVER: You are muted.");
}
else
{
new string[128];
new Length = strlen(text);
new TalkTime = Length*100;
format(string, sizeof(string), "%s says: %s", GetName(playerid), text);
ProxDetector(20.0, playerid, string, COLOR_1, COLOR_2, COLOR_3, COLOR_4, COLOR_5);
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 1, 1, 0, TalkTime);
return 0;
}
return 1;
}
i wanna make it so you can walk / talk because right now if you talk you are frozen and the animation plays. can someone teach me how to do that ?
Re: chat animation = frozen -
AndreiWow - 07.04.2017
Read this:
https://sampwiki.blast.hk/wiki/ApplyAnimation
In that animation you used 1 for "freeze" which means that the player will be frozen.
Re: chat animation = frozen -
GoldenLion - 07.04.2017
Код:
ApplyAnimation(playerid, "ped", "IDLE_chat", 4.1, 1, 0, 0, 1, 1);
Then set a timer which stops the animation.
Re: chat animation = frozen -
noPANDA - 07.04.2017
Quote:
Originally Posted by AndreiWow
|
ApplyAnimation(playerid,"PED","IDLE_CHAT", 4.1, 1, 1, 1, 0, aTime, 1);
i used this and it still does it even though the 'frozen' is set to 0 (unless im stupid and its not xD)
Re: chat animation = frozen -
DuyDang2412 - 07.04.2017
Use this to stop the animation:
Quote:
ApplyAnimation(playerid, "CARRY","crry_prtial",4.0, 0, 0, 0, 0, 0);
|