Заменивай! Должно работать =)
PHP код:
else if (strcmp("/clist", cmdtext, true) == 0)
{
new dialog[556];
format(dialog,sizeof(dialog),
"0. Выключить цвет\
\n1. Цвет фракции\
\n2. Чёрный\
\n3. Ярко зелёный\
\n4. Бирюзовый\
\n5. Жёлто-зелёный\
\n6. Тёмно-зелёный\
\n7. Серо-зелёный\
\n8. Красный\
\n9. Ярко-красный\
\n10. Оранжевый\
\n11. Коричневый\
\n12. Тёмно-красный\
\n13. Cеро-красный\
\n14. Жёлто-оранжевый\
\n15. Малиновый\
\n16. Розовый\
\n17. Синий\
\n18. Голубой\
\n19. Синяя сталь\
\n20. Сине-зелёный\
\n21. Тёмно-синий\
\n22. Фиолетовый\
\n23. Индиго\
\n24. Серо-синий\
\n25. Жёлтый\
\n26. Кукурузный\
\n27. Золотой\
\n28. Старое золото");
ShowPlayerDialog(playerid,2001,DIALOG_STYLE_LIST,"{30C3F0}Цвет никнейма:",dialog,"Выбрать","Отменить");
return true;
}
PHP код:
case 2001:
{
if(!response) return OnPlayerCommandText(playerid,"/mm");
SendClienMessage(playerid, COLOR_BLUE, "Выбранный цвет установлен.");
switch(listitem)
{
case 0: SetPlayerColor(playerid, 0xFFFFFF20);//
case 1: SetPlayerToTeamColor(playerid);//Цвет фракции
case 2: SetPlayerColor(playerid,0x313131AA);
case 3: SetPlayerColor(playerid,0x49E789FF);
case 4: SetPlayerColor(playerid,0x2A9170FF);
case 5: SetPlayerColor(playerid,0x9ED201FF);
case 6: SetPlayerColor(playerid,0x279B1EFF);
case 7: SetPlayerColor(playerid,0x51964DFF);
case 8: SetPlayerColor(playerid,0xFF0606FF);
case 9: SetPlayerColor(playerid,0xF68F67FF);
case 10: SetPlayerColor(playerid,0xF45000FF);
case 11: SetPlayerColor(playerid,0xBE8A01FF);
case 12: SetPlayerColor(playerid,0xB30000FF);
case 13: SetPlayerColor(playerid,0x954F4FFF);
case 14: SetPlayerColor(playerid,0xE7961DFF);
case 15: SetPlayerColor(playerid,0xE6284EFF);
case 16: SetPlayerColor(playerid,0xFF9DB6FF);
case 17: SetPlayerColor(playerid,0x110CE7FF);
case 18: SetPlayerColor(playerid,0x0CD7E7FF);
case 19: SetPlayerColor(playerid,0x139BECFF);
case 20: SetPlayerColor(playerid,0x2C9197FF);
case 21: SetPlayerColor(playerid,0x114D71FF);
case 22: SetPlayerColor(playerid,0x8813E7FF);
case 23: SetPlayerColor(playerid,0xB313E7FF);
case 24: SetPlayerColor(playerid,0x758C9DFF);
case 25: SetPlayerColor(playerid,0xFFDE24FF);
case 26: SetPlayerColor(playerid,0xFFEE8AFF);
case 27: SetPlayerColor(playerid,0xDDB201FF);
case 28: SetPlayerColor(playerid,0xDDA701FF);
case 29: SetPlayerColor(playerid,0xB0B000FF);
case 30: SetPlayerColor(playerid,0x868484FF);
case 31: SetPlayerColor(playerid,0xB8B6B6FF);
case 32: SetPlayerColor(playerid,0x333333FF);
case 33: SetPlayerColor(playerid,0xFAFAFAFF);
case 34: SetPlayerColor(playerid,COLOR_BLACK);
}
return true;
}