09.06.2009, 12:25
Okay i have a shout command..
But how do i make it so it sends the message to everybody in their job colour?
And how do i make NORMAL chat not send to all?? Like it sends the message to people that are atleast 10 yards away cm mm m
Code:
if(!strcmp(cmdtext, "/shout", true, 3)) // 3 is the length of /me
{
if(cmdtext[3] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shout [message]");
return 1;
}
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "[SHOUT]%s: %s", str, cmdtext[4]);
SendClientMessageToAll(COLOR_WHITE, str);
return 1;
}
And how do i make NORMAL chat not send to all?? Like it sends the message to people that are atleast 10 yards away cm mm m

