/radio command help
#3

pawn Код:
CMD:r(playerid,params[])
{
    #pragma unused params
    if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [text] to talk in team radio");
    new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
    new string[128];
    format(string, sizeof(string), "[R][Team Radio] %s: %s", Name, params[0]);
    printf("%s", string);

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, COLOR_GREEN, string);
    }
    return 1;
}
Reply


Messages In This Thread
/radio command help - by MichaelWharton101 - 19.04.2013, 00:07
Re: /radio command help - by Scrillex - 19.04.2013, 00:09
Re: /radio command help - by Giroud12 - 19.04.2013, 00:10
Re: /radio command help - by MichaelWharton101 - 19.04.2013, 00:20
Re: /radio command help - by Jefff - 19.04.2013, 00:23
Re: /radio command help - by Giroud12 - 19.04.2013, 00:24
Re: /radio command help - by MichaelWharton101 - 19.04.2013, 00:24
Re: /radio command help - by Scrillex - 19.04.2013, 00:25
Re: /radio command help - by Giroud12 - 19.04.2013, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)