25.12.2010, 09:39
My team chat just isnt working :S
Can anyone help?
Please have a look a it,
EDIT:
The USAGE shows but does nothing when i do the command.
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;
}
The USAGE shows but does nothing when i do the command.