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);
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);
}
Your problem come from : ApplyAnimation ; Everything you need to know for your problem is here : https://sampwiki.blast.hk/wiki/ApplyAnimation
|
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 0, 0, 0, 1, 1);