Help in an /r cmd. Not working as it should.
#1

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...

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;
}
Thank you.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)