04.12.2015, 08:35
Код:
new accent[64]; GetPlayerAccent(playerid, accent); if(PlayerInfo[playerid][pAccent] != 0) { if (PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "Stranger says: %s ", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000); } else { format(string, sizeof(string), "%s %s says: %s", accent, sendername, text); ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000); } } else { if (PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "Stranger says: %s ", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000); } else { format(string, sizeof(string), "%s says: %s", sendername, text); ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000); } }
Try this