07.04.2017, 10:09
Код:
public OnPlayerText(playerid, text[]) { if(pInfo[playerid][IsPlayerMuted] == 1) { SendClientMessage(playerid, COLOR_RED, "SERVER: You are muted."); } else { new string[128]; new Length = strlen(text); new TalkTime = Length*100; format(string, sizeof(string), "%s says: %s", GetName(playerid), text); ProxDetector(20.0, playerid, string, COLOR_1, COLOR_2, COLOR_3, COLOR_4, COLOR_5); ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 1, 1, 0, TalkTime); return 0; } return 1; }