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?
Maybe animation doesnt allow that. Try another anim