13.08.2013, 20:45
Ok, i wanna TEAM RADIO! I have gotten this far, correct me if im wrong, but i think i have a good start! How do i finish this?
COMMANDS
STOCK
COMMANDS
pawn Код:
CMD:sr(playerid, cmdtext[])
{
string[256];
format(string, sizeof string, "[SITH-RADIO] %s: {FFFFFF}%s", playerid, cmdtext[]);
SendMessageToTeam(2,0xFF000000,string);
return 1;
}
CMD:jr(playerid, cmdtext[])
{
string[256];
format(string, sizeof string, "[JEDI-RADIO] %s: {FFFFFF}%s", playerid, cmdtext[]);
SendMessageToTeam(1,0xFF000000,string);
return 1;
}
pawn Код:
stock SendMessageToTeam(team,color,mess[])
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == team)
{
SendClientMessage(i,color,mess);
}
}
}
return 1;
}