05.08.2015, 00:40
Can someone tell/show me why this isn't working? It is repeating the message when I speak in-game.
For example, in-game it says:
[British Accent] John Walker says: Yo.
John Walker: Yo.
How do I make it so it doesn't repeat itself after?
Код HTML:
public OnPlayerText(playerid, text[]) { new string[132]; if(PlayerInfo[playerid][pAccent] != 0) { format(string, sizeof(string), "[%s Accent] %s says: %s", PlayerInfo[playerid][pAccent], GetPlayerNameEx(playerid), text); Log("logs/chat.log", string); SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20.0, 10000); ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); return 1; } format(string, sizeof(string), "%s says: %s", GetPlayerNameEx(playerid), text); Log("logs/chat.log", string); SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20.0, 10000); ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); }
[British Accent] John Walker says: Yo.
John Walker: Yo.
How do I make it so it doesn't repeat itself after?