05.07.2013, 17:20
Hm, new problem.
When I type something in the chat, it appears two times. ex:
Danny taylon says: test ( in white ) and then
Danny Taylon says: test (in grey) xD
Код:
public OnPlayerText(playerid, text[]) { new message[128], targetid; format(message, sizeof(message), "%s Says: %s", GetName(playerid), text); if(ProxDetectorS(30.0, playerid, targetid)) { ProxDetector(30.0, playerid, message, COLOR_WHITE); } if(ProxDetectorS(60.0, playerid, targetid)) { ProxDetector(60.0, playerid, message, COLOR_GREY); } return 0; }
Danny taylon says: test ( in white ) and then
Danny Taylon says: test (in grey) xD