Walking while animation is on
#1

So, this is my onplayertext public
Code:
public OnPlayerText(playerid, text[])
{
	if(player_is_authorized[playerid] == 0)
	{
 		SendClientMessage(playerid, COLOR_WHITE,""#COL_RED"[Error]: "#COL_WHITE"You should login first.");
		return 0;
	}
	else
	{
		SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20, 10);
		new Float:x,Float:y,Float:z;
		new texte[512];
		new name[25];
		GetPlayerName(playerid, name, 25);
		GetPlayerPos(playerid, Float:x, Float:y, Float:z);
		format(texte, sizeof(texte), ""#COL_WHITE"%s[%d]: %s",name,playerid,text);
		if(!IsPlayerInAnyVehicle(playerid))
		{
		new talktime = strlen(text) * 200;
		ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 0, 0, 0, talktime, 1);
		SendRangeMessaage(texte, COLOR_WHITE, 20, x,y,z);
		}
		return 0;
	}
}
How could i change it so my players could walk while the talk animation is still active?
Reply


Messages In This Thread
Walking while animation is on - by Kampott - 22.09.2017, 12:02
Re: Walking while animation is on - by Fratello - 22.09.2017, 12:17
Re: Walking while animation is on - by Kampott - 22.09.2017, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)