TALK TO A CERTAIN TEAM. how?
#1

How would i put is so if a player like types an exclamation mark before there text it only goes to the team they're on?

ex.

bc_r1da = Grove St

bc_r1da: !hey guys.

can this be done? or is there a simpler way?

thnx I.A.
Reply
#2

Take a look at this filterscript and learn how.


http://forum.sa-mp.com/index.php?topic=165092.0
Reply
#3

Quote:
Originally Posted by MWF2
Take a look at this filterscript and learn how.


http://forum.sa-mp.com/index.php?topic=165092.0
kool, perfect. Thnx.
Reply
#4

This uses gTeam, if you do not use gTeam, replace it for what you do use.

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(text[0] == '!')
  {
    new MSG[128], Pname[24];
    GetPlayerName(playerid, Pname, 24);
    format(MSG, 128, "*** %s: %s", Pname, text);
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(gTeam[i] == gTeam[playerid]) SendClientMessage(playerid, 0x33AA33AA, MSG);
    }
    return 0;
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)