Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

chat animation = frozen

$
0
0
Code:

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 ?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>