Chat Anim
#1

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
PHP код:
                if(PlayerInfo[playerid][pHelper] > && PlayerInfo[playerid][pAcceptedHelp])
                {
                    
callcmd::b(playeridtext);
                }
                else
                {
                    if(!
strcmp(PlayerInfo[playerid][pAccent], "None"true))
                    {
                        
format(stringsizeof(string), "%s says: %s"GetPlayerRPName(playerid), text);
                    }
                    else
                    {
                        
format(stringsizeof(string), "(%s) %s says: %s"PlayerInfo[playerid][pAccent], GetPlayerRPName(playerid), text);
                    }
                    
SendProximityFadeMessage(playerid20.0stringCOLOR_GREY1COLOR_GREY2COLOR_GREY3COLOR_GREY4COLOR_GREY5);
                     
SetPlayerBubbleText(playerid20.0COLOR_WHITE"says: %s"text);
                     
ApplyAnimation(playerid"PED""IDLE_CHAT"4.0000001);
                    
SetTimerEx("StopChat"1000false"i"playerid); 
And this is the anim placed on Public onplayertext
PHP код:
                     ApplyAnimation(playerid"PED""IDLE_CHAT"4.0000001);
                    
SetTimerEx("StopChat"1000false"i"playerid); 
PHP код:
forward StopChat(playerid);
public 
StopChat(playerid)
{
    return 
ClearAnimations(playerid);

Reply


Messages In This Thread
Chat Anim - by ScottMcBean - 19.05.2018, 15:52
Re: Chat Anim - by ScottMcBean - 19.05.2018, 16:41
Re: Chat Anim - by ScottMcBean - 21.05.2018, 13:09
Re: Chat Anim - by Dayrion - 21.05.2018, 13:18
Re: Chat Anim - by ScottMcBean - 21.05.2018, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)