[HELP]Team Chat
#1

My team chat just isnt working :S

Can anyone help?

Please have a look a it,

pawn Код:
CMD:a(playerid, params[])
{
    if(gTeam[playerid] == CLASS_AIRFORCE)
    {
        new string[128], pname[24];
        if(isnull(params)) return SendClientMessage(playerid, RED, "USAGE: /a [msg]");
        GetPlayerName(playerid, pname, 24);
        format(string, sizeof(string), ">> %s @ [Airforce Radio]: %s",pname,params);
        printf("%s", string);
        for(new i=0;i<MAX_PLAYERS;i++)
        {
            if(gTeam[i] == CLASS_AIRFORCE)
            {
                format(string, sizeof(string), ">> %s @ [Airforce Radio]: %s",pname,params);
                AirforceRadio(BLUE,string);
            }
        }
    } else SendClientMessage(playerid, RED, "Only The Airforce Can Use This Frequency!");
    return true;
}
EDIT:

The USAGE shows but does nothing when i do the command.
Reply


Messages In This Thread
[HELP]Team Chat - by <Weponz> - 25.12.2010, 09:39
Re: [HELP]Team Chat - by Sascha - 25.12.2010, 10:18
Re: [HELP]Team Chat - by Mean - 25.12.2010, 11:28
Re: [HELP]Team Chat - by Sascha - 25.12.2010, 11:45
Re: [HELP]Team Chat - by [NWA]Hannes - 25.12.2010, 12:08
Re: [HELP]Team Chat - by Mean - 25.12.2010, 15:24
Re: [HELP]Team Chat - by Sascha - 25.12.2010, 15:26
Re: [HELP]Team Chat - by Mean - 25.12.2010, 15:56
Re: [HELP]Team Chat - by Sascha - 25.12.2010, 17:23

Forum Jump:


Users browsing this thread: 1 Guest(s)