[HELP] Team Chat Bugging?
#2

Try:
pawn Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif

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(gTeam[i] == CLASS_AIRFORCE) AirforceRadio(WHITE,string);
        }
    } else SendClientMessage(playerid, RED, "Only The Airforce Can Use This Radio!");
    return 1;
}
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)