new Length = strlen(text);
new aTime = Length*200;
if(!IsPlayerInAnyVehicle(playerid) && !IsPlayerSitting(playerid))
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,aTime);
}
else if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerVehicleSeat(playerid) == 0) ApplyAnimation(playerid,"CAR_CHAT","CAR_SC3_FL",4,1,0,0,0,aTime,1);
if(GetPlayerVehicleSeat(playerid) == 1) ApplyAnimation(playerid,"CAR_CHAT","CAR_SC3_FR",4,1,0,0,0,aTime,1);
if(GetPlayerVehicleSeat(playerid) == 2) ApplyAnimation(playerid,"CAR_CHAT","CAR_SC1_BL",4,1,0,0,0,aTime,1);
if(GetPlayerVehicleSeat(playerid) == 3) ApplyAnimation(playerid,"CAR_CHAT","CAR_SC3_BR",4,1,0,0,0,aTime,1);
}
else if(!IsPlayerInAnyVehicle(playerid))
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,aTime);
}
ApplyAnimation(playerid,"PED","IDLE_chat",4.1,0, 0, 0, 0, 0);
SetTimerEx("StopAnim", 1000, false, "i", playerid);
forward StopAnim(playerid);
public StopAnim(playerid)
{
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0 );
}
No , he is not freezed after , everything is ok you can move , but he is freezed WHILE chatting.
|
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0, 1);
SetTimerEx("StopChat", 1000, false, "i", playerid);
forward StopChat(playerid);
public StopChat(playerid)
{
return ClearAnimations(playerid);
}