29.07.2013, 15:37
pawn Код:
CMD:t(playerid, params[])
{
new string[128], aname[MAX_PLAYER_NAME];
if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, 0xFF0000AA, "[USAGE]: /t <text>");
{
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), "[Team Chat]: %s: %s", aname, string);
}
for(new i; i < MAX_PLAYERS; i++)
{
if(pClan[i] == 1 || pClan[i] == 2 || pClan[i] == 0)
{
SendClientMessage(i, 0xFF7F50AA, string);
}
}
return 1;
}