15.01.2012, 14:25
Hello. My /r cmd work, and all cop ranks can use, but only the leader see the radio chat.. We use,a nd don't see or receive anything...
Thank you.
pawn Код:
CMD:r(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][Fmember] == 1 || PlayerInfo[i][Fleader] == 1)
{
new text[258];
if(!sscanf(params, "s", text))
{
new name[MAX_PLAYER_NAME], string[258];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s (radio): %s , Over.", name, text);
SendClientMessage(i, TEAM_RADIO_COLOR, string);
return 1;
}
else return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [Text]");
}
}
return 0;
}