help me with /shout etc.
#1

Okay i have a shout command..

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;
  }
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
Reply


Messages In This Thread
help me with /shout etc. - by coole210 - 09.06.2009, 12:25
Re: help me with /shout etc. - by MPKaboose - 09.06.2009, 12:27
Re: help me with /shout etc. - by coole210 - 09.06.2009, 21:37
Re: help me with /shout etc. - by lol2112 - 09.06.2009, 21:39
Re: help me with /shout etc. - by coole210 - 09.06.2009, 21:40
Re: help me with /shout etc. - by Correlli - 09.06.2009, 21:41
Re: help me with /shout etc. - by HuRRiCaNe - 09.06.2009, 21:44

Forum Jump:


Users browsing this thread: 3 Guest(s)