03.06.2009, 15:38
This is the radio I used for my Roleplay for cops...
So when a Cop types !Hello. It will come out as:
(Cop Radio) Name: Hello.
pawn Код:
new RadioChat[128];
if(text[0] == '!' && text[1] != 0)
{
if(gTeam[playerid] == 6)
{
for(new i = 0; i < MAX_PLAYERS; i++ )
{
format(RadioChat, sizeof(RadioChat), "(Cop Radio) %s: %s",PlayerNam(playerid),text[1]);
if(gTeam[i] == 6)
{
SendClientMessage(i, RADIO_COLOR, RadioChat);
}
}
}
return 0;
}
(Cop Radio) Name: Hello.