27.05.2016, 19:06
PHP код:
CMD:cc(pid, params[])
{
#pragma unused params
for(new i = 0; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i) || IsPlayerAdmin(i)) continue;
for(new cc = 0; cc < 250; cc++)
{
SendClientMessage(i, COLOR_WHITE, " ");
}
}
new name[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "The chat has been cleared by {FF0000}%s", name);
SCMToAll(COLOR_WHITE, string);
}