21.06.2010, 04:04
You could also use this because the other code I posted doesn't check if the last digit is also an asterisk
Код:
if(text[0] == '*') { new j = 1; while(j < 128) { if(text[j] == '\0' && text[j-1] == '*') { new action[128]; format(action, 128, "%s", text); strdel(action, 0, 1); strdel(action, j-2, j-1); format(string, sizeof(string), "* %s %s", RPN(playerid), action); ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); return 0; } j++; } }