SA-MP Forums Archive
help me with /shout etc. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me with /shout etc. (/showthread.php?tid=81258)



help me with /shout etc. - coole210 - 09.06.2009

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


Re: help me with /shout etc. - MPKaboose - 09.06.2009

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


Re: help me with /shout etc. - coole210 - 09.06.2009

That does not answer my question at all!



Re: help me with /shout etc. - lol2112 - 09.06.2009

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.


Re: help me with /shout etc. - coole210 - 09.06.2009

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


Re: help me with /shout etc. - Correlli - 09.06.2009

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..


Re: help me with /shout etc. - HuRRiCaNe - 09.06.2009

searching would be very usefull