TALK TO A CERTAIN TEAM. how? - 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: TALK TO A CERTAIN TEAM. how? (
/showthread.php?tid=145993)
TALK TO A CERTAIN TEAM. how? -
KDlivest954 - 05.05.2010
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.
Re: TALK TO A CERTAIN TEAM. how? -
MWF2 - 05.05.2010
Take a look at this filterscript and learn how.
http://forum.sa-mp.com/index.php?topic=165092.0
Re: TALK TO A CERTAIN TEAM. how? -
KDlivest954 - 05.05.2010
Quote:
|
Originally Posted by MWF2
|
kool, perfect. Thnx.
Re: TALK TO A CERTAIN TEAM. how? -
[HiC]TheKiller - 05.05.2010
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;
}