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

Quote:
Originally Posted by Bogdan1992
Посмотреть сообщение
Ricardo, did it work?
If yes, would you like to give me a reputation point please .
Don't beg for Rep..
pawn Код:
CMD:r(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [Text]");
    foreach(Player, i) {
        if(PlayerInfo[i][Fmember] == 1 || PlayerInfo[i][Fleader] == 1) {
            new
                string[ 128 ], name[ MAX_PLAYER_NAME ];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "%s (radio): %s , Over.", name, params);
            SendClientMessage(i, TEAM_RADIO_COLOR, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)