That is correct.
Also, here is your command again, fixed (atleast it should be :P) and a little speed improvement:
pawn Код:
dcmd_cchat(playerid, params[])
{
if (!strlen(params)) return SendClientMessage(playerid, COLOR_ERROR, "USAGE: /cchat (Message)");
if (GetPlayerWantedLevel(playerid) < 20) return SendClientMessage(playerid, -1, "You are not a hardened criminal");
if (IsSpawned[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You must be alive and spawned in order to be able to use this command.");
new string[128];
format(string, 128, "4[CRIM CHAT] %s(%d): %s", PlayerName(playerid), playerid, params);
IRC_GroupSay(gGroupAdminID, IRC_ADMINCHANNEL, string);
format(string, 128, "[CRIM CHAT] %s(%d): %s", PlayerNAme(playerid), playerid, params);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(i) || GetPlayerWantedLevel(i) < 20) continue;
SendClientMessage(i, COLOR_RED, string);
}
return 1;
}