16.03.2011, 17:45
Well I got the following code now:
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?
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; }