19.10.2014, 04:55
Quote:
stock ProcessChatText(playerid, text[]) { new useindex=1; // Handle shouting prefix (!) if(text[0] == '!' && strlen(text) > 1) { if(text[1] == ' ') useindex++; TalkMessage(SHOUT_DISTANCE, playerid,COLOR_MAGENTA, "*shouts :", text[useindex]); return; } // Handle quiet prefix (#) if(text[0] == '#' && strlen(text) > 1) { if(text[1] == ' ') useindex++; TalkMessage(LOW_DISTANCE, playerid,COLOR_MAGENTA, "*says :", text[useindex]); return; } // Send to other players in range and fade TalkMessage(TALK_DISTANCE, playerid, "", text); } |