chat animation = frozen
#1

Код:
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 ?
Reply
#2

Read this:

https://sampwiki.blast.hk/wiki/ApplyAnimation

In that animation you used 1 for "freeze" which means that the player will be frozen.
Reply
#3

Код:
ApplyAnimation(playerid, "ped", "IDLE_chat", 4.1, 1, 0, 0, 1, 1);
Then set a timer which stops the animation.
Reply
#4

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Read this:

https://sampwiki.blast.hk/wiki/ApplyAnimation

In that animation you used 1 for "freeze" which means that the player will be frozen.
ApplyAnimation(playerid,"PED","IDLE_CHAT", 4.1, 1, 1, 1, 0, aTime, 1);

i used this and it still does it even though the 'frozen' is set to 0 (unless im stupid and its not xD)
Reply
#5

Use this to stop the animation:
Quote:

ApplyAnimation(playerid, "CARRY","crry_prtial",4.0, 0, 0, 0, 0, 0);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)