Send Player Mesage using gTeam? - 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: Send Player Mesage using gTeam? (
/showthread.php?tid=163972)
Send Player Mesage using gTeam? -
VictorMartinez - 29.07.2010
how do i make it to where by defualt everything you type goes to your team mates? I use gTeam.
Re: Send Player Mesage using gTeam? -
PotH3Ad - 29.07.2010
pawn Код:
public OnPlayerText(playerid, text[])
{
for(new x=0; x!=MAX_PLAYERS; x++)
{
if(gTeam[x] == gTeam[playerid])
{
new str[128];
format(str, sizeof(str), "<TeamChat> %s: %s", pName(playerid), text);
SendClientMessage(playerid, 0xFAFFFF, str);
return 0;
}
}
return 1;
}
Re: Send Player Mesage using gTeam? -
VictorMartinez - 29.07.2010
ok i completely forgot about this but now i need an "everybody" chat. hehe... i saw this one server that you typed "\\ text here will go to the whole team" but i don't know how to do this
imma noob!