[HELP] Team Chat Bugging?
#8

Well, then all you need shoul be:
pawn Код:
CMD:ar(playerid, params[])
{
    if(gTeam[playerid] == CLASS_AIRFORCE)
    {
        new string[100], pname[24];
        if(isnull(params)) return SendClientMessage(playerid, RED, "USAGE: /ar [msg]");
        GetPlayerName(playerid, pname, 24);
        format(string, sizeof(string), "** %s [%d] At [A-F Radio]: %s",pname,playerid,params);
        printf("%s", string);
        for(new i=0;i<MAX_PLAYERS;i++)
        {
           if(IsPlayerConnected(i)) if(gTeam[i] == CLASS_AIRFORCE) SendClientMessage(i, WHITE, string);
        }
    } else SendClientMessage(playerid, RED, "Only The Airforce Can Use This Radio!");
    return 1;
}
or

pawn Код:
CMD:ar(playerid, params[])
{
    if(gTeam[playerid] == CLASS_AIRFORCE)
    {
        new string[100], pname[24];
        if(isnull(params)) return SendClientMessage(playerid, RED, "USAGE: /ar [msg]");
        GetPlayerName(playerid, pname, 24);
        format(string, sizeof(string), "** %s [%d] At [A-F Radio]: %s",pname,playerid,params);
        printf("%s", string);
        AirforceRadio(WHITE,string);
    } else SendClientMessage(playerid, RED, "Only The Airforce Can Use This Radio!");
    return 1;
}
It's your choice.
Reply


Messages In This Thread
[HELP] Team Chat Bugging? - by <Weponz> - 24.12.2010, 09:06
Re: [HELP] Team Chat Bugging? - by xxmitsu - 24.12.2010, 09:18
Re: [HELP] Team Chat Bugging? - by <Weponz> - 24.12.2010, 09:41
Re: [HELP] Team Chat Bugging? - by xxmitsu - 24.12.2010, 09:47
Re: [HELP] Team Chat Bugging? - by <Weponz> - 24.12.2010, 09:54
Re: [HELP] Team Chat Bugging? - by xxmitsu - 24.12.2010, 09:58
Re: [HELP] Team Chat Bugging? - by <Weponz> - 24.12.2010, 10:18
Re: [HELP] Team Chat Bugging? - by xxmitsu - 24.12.2010, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)