16.06.2012, 22:32
pawn Code:
CMD:radio(playerid, params[])
{
new string[80],Nome, wText[128];
if(sscanf(params, "s[128]",wText)) return SendClientMessage(playerid, -1, "Use: /radio [texto]");
GetPlayerName(playerid,Nome,MAX_PLAYER_NAME);
for(new i; i<MAX_PLAYERS; i++)
{
format(string, sizeof(string), "{CHAT GANG} Jogador %s diz: %s, cвmbio!",Nome,wText);
if(IsPlayerConnected(i) && EquipeGG[i] == EquipeGG[playerid])
{
SendClientMessage(i,-1, string);
}
}
return 1;
}