cmd:gl(playerid, params[])
{
if(PI[playerid][pAdmin] < 8) return SCM(playerid, -1, "Данная функция доступна администраторам 8 уровня !");
static const levels[] = {1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999};
static currentLevel = 0;
rainbow_status{playerid} = !rainbow_status{playerid};
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, sizeof(playerName));
new newName[MAX_PLAYER_NAME];
format(newName, sizeof(newName), "%s [%d]", playerName, levels[currentLevel]);
SetPlayerName(playerid, newName);
SendClientMessage(playerid, 0xFF6600FF, rainbow_status{playerid} ? (!"Вы успешно {66CC00}включили {FF6600}радужный клист с уровнем %d", levels[currentLevel]) : (!"Вы успешно {66CC00}выключили {FF6600}радужный клист"));
currentLevel = (currentLevel + 1) % sizeof(levels);
return 1;
}