PDA

View Full Version : Chat Anim


ScottMcBean
19/05/2018, 03:52 PM
The player freezes when the anim goes on i have searched on the whole forum tryed everything but it keeps freezing
Here is my code
if(PlayerInfo[playerid][pHelper] > 0 && PlayerInfo[playerid][pAcceptedHelp])
{
callcmd::b(playerid, text);
}
else
{
if(!strcmp(PlayerInfo[playerid][pAccent], "None", true))
{
format(string, sizeof(string), "%s says: %s", GetPlayerRPName(playerid), text);
}
else
{
format(string, sizeof(string), "(%s) %s says: %s", PlayerInfo[playerid][pAccent], GetPlayerRPName(playerid), text);
}
SendProximityFadeMessage(playerid, 20.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
SetPlayerBubbleText(playerid, 20.0, COLOR_WHITE, "says: %s", text);
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0, 1);
SetTimerEx("StopChat", 1000, false, "i", playerid);
And this is the anim placed on Public onplayertext
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0, 1);
SetTimerEx("StopChat", 1000, false, "i", playerid);
forward StopChat(playerid);
public StopChat(playerid)
{
return ClearAnimations(playerid);
}

ScottMcBean
19/05/2018, 04:41 PM
Bump! Any solution

ScottMcBean
21/05/2018, 01:09 PM
Bump! Any solution

Holas!??

Dayrion
21/05/2018, 01:18 PM
Your problem come from : ApplyAnimation ; Everything you need to know for your problem is here : http://wiki.sa-mp.com/wiki/ApplyAnimation

ScottMcBean
21/05/2018, 01:29 PM
Your problem come from : ApplyAnimation ; Everything you need to know for your problem is here : http://wiki.sa-mp.com/wiki/ApplyAnimation

ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 0, 0, 0, 1, 1);
Like that will work?