19.05.2018, 15:52
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
And this is the anim placed on Public onplayertext
Here is my code
PHP код:
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);
PHP код:
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0, 1);
SetTimerEx("StopChat", 1000, false, "i", playerid);
PHP код:
forward StopChat(playerid);
public StopChat(playerid)
{
return ClearAnimations(playerid);
}