19.10.2014, 04:48
(
Последний раз редактировалось Justinclaveria123; 19.10.2014 в 06:12.
)
-------CLOSED---------
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); } |
// /low if(!strcmp("/l", cmd, true) || !strcmp("/low", cmd, true)) { message = strrest(cmdtext,idx); if(!strlen(message)) { CmdUsageMessage(playerid, "(/l)ow [text]"); return 1; } TalkMessage(LOW_DISTANCE, playerid,"*says", message); return 1; } // /shout if(!strcmp("/s", cmd, true) || !strcmp("/shout", cmd, true)) { message = strrest(cmdtext,idx); if(!strlen(message)) { CmdUsageMessage(playerid, "(/s)hout [text]"); return 1; } TalkMessage(SHOUT_DISTANCE, playerid, "*shouts", message); return 1; } |
stock ProcessChatText(playerid, text[]) { new useindex=1; // Handle shouting prefix (!) if(text[0] == '!' && strlen(text) > 1) { if(text[1] == ' ') useindex++; TalkMessage(SHOUT_DISTANCE, playerid, "*shouts :", text[useindex]); return; } // Handle quiet prefix (#) if(text[0] == '#' && strlen(text) > 1) { if(text[1] == ' ') useindex++; TalkMessage(LOW_DISTANCE, playerid, "*says :", text[useindex]); return; } // Send to other players in range and fade TalkMessage(TALK_DISTANCE, playerid, "", text); } |