Animation and walking
#5

Well I got the following code now:

Code:
public OnPlayerText(playerid, text[])
{
    new string[512];
    for(new i; i<MAX_PLAYERS; i++)
    {
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        if(IsPlayerInRangeOfPoint(i, 25.0, X, Y, Z))
        {
            format(string, sizeof(string), "%s says: %s", PlayerInfo[playerid][username], text);
            SendClientMessage(i, COLOR_WHITE, string);
			new length = strlen(text);
			new aTime = length*100;
            ApplyAnimation(playerid, "PED", "Seat_talk_01", 4.1, 0, 1, 1, 0, aTime);
        }
    }
    return 0;
}
But if you roleplay escaping it would be unrealistic if you just stay there for some seconds till you've ended your sentence. What can I do here?
Reply


Messages In This Thread
Animation and walking - by GiS - 15.03.2011, 20:14
Re: Animation and walking - by admantis - 15.03.2011, 20:18
Re: Animation and walking - by GiS - 15.03.2011, 20:19
Re: Animation and walking - by Ironboy - 15.03.2011, 21:03
Re: Animation and walking - by GiS - 16.03.2011, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)