03.04.2012, 12:29
If you use no team system here a team system tutorial
https://sampwiki.blast.hk/wiki/PAWN_tutorial
If you use that then
I don't know if it works
https://sampwiki.blast.hk/wiki/PAWN_tutorial
If you use that then
pawn Код:
// Under includes
forward TeamMessgae(team, color, string[]);
//OnPlayerText
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "Gang: %s: %s", pname, text);
TeamMessage(gTeam[playerid], COLOR HERE, string);
// Put it somewhere but not in a OTHER public
public TeamMessage(team, color, string[])
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(gTeam[ii] == team)
{
SendClientMessage(i, color, string);
}
}
}