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
#2

use return 0; at the end to don't send message to players (the one that the player typed)
Reply
#3

That does not answer my question at all!
Reply
#4

Quote:
Originally Posted by coole210
That does not answer my question at all!
That's true but you really ought to be searching for this...it's definitely on the forum.
Reply
#5

Lol im too busy with my god damn vehicle system to search :/
Reply
#6

Quote:
Originally Posted by coole210
Lol im too busy with my god damn vehicle system to search :/
Searching a bit around would take you only few minutes..
Reply
#7

searching would be very usefull
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)