/clist (copy Samp-RP) - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
/clist (copy Samp-RP)
[CM]Kingster Дата: Понедельник, 22.06.2015, 11:10 | Сообщение # 1
Боец
Сообщений: 245
Статус: Offline
Всем привет, решил выложить свою команду /clist (copy srp)

Автор: Samuel_Lecompte. ([CM]Kingster])
Нам требуется:
DC_CMD / ZCMD
sscanf

Добавляем команду:
Код
CMD:clist(playerid, params[])
{
     if(sscanf(params, "d", params[0]))
  {
         SCM(playerid,-1,"Используйте меню или введите: /clist [ид цвета 0 - 33]");
         new dialog[512];
      strcat(dialog, "[0]    Выключить цвет\n[1]    Зелёный\n[2]    Светло зелёный\n[3]    Ярко зелёный\n[4]    Бирюзовый\n[5]    Жёлто-зелёный\n[6]    Тёмно-зелёный\n[7]    Серо-зелёный\n[8]    Красный\n[9]    Ярко-красный\n[10]    Оранжевый\n[11]    Коричневый\n[12]    Тёмно-красный\n[13]    Cеро-красный\n[14]    Жёлто-оранжевый\n[15]    Малиновый\n[16]    Розовый\n[17]    Синий\n[18]    Голубой\n[19]    Синяя сталь\n[20]    Сине-зелёный\n[21]    Тёмно-синий\n[22]    Фиолетовый\n");
      strcat(dialog, "[23]    Индиго\n[24]    Серо-синий\n[25]    Жёлтый\n[26]    Кукурузный\n[27]    Золотой\n[28]    Старое золото\n[29]    Оливковый\n[30]    Серый\n[31]    Серебро\n[32]    Чёрный\n[33]    Белый");
      ShowPlayerDialog(playerid,2001,DIALOG_STYLE_LIST, "Цвет",dialog, "Выбрать", "Отмена");
      return 1;
  }
  switch(params[0])
  {
  case 0: SetPlayerColor(playerid, TEAM_HIT_COLOR);
  case 1: SetPlayerColor(playerid,0x089401FF);
  case 2: SetPlayerColor(playerid,0x56FB4EFF);
  case 3: SetPlayerColor(playerid,0x49E789FF);
  case 4: SetPlayerColor(playerid,0x2A9170FF);
  case 5: SetPlayerColor(playerid,0x9ED201FF);
  case 6: SetPlayerColor(playerid,0x279B1EFF);
  case 7: SetPlayerColor(playerid,0x003366FF);
  case 8: SetPlayerColor(playerid,0xFF0606FF);
  case 9: SetPlayerColor(playerid,0xFF6600FF);
  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);
  }
    return true;
}

в public OnDialogResponse
Код
    case 2001:
   {
    if(response == 1)
    {
     switch(listitem)
     {
     case 0: SetPlayerColor(playerid, TEAM_HIT_COLOR);
     case 1: SetPlayerColor(playerid,0x089401FF);
     case 2: SetPlayerColor(playerid,0x56FB4EFF);
     case 3: SetPlayerColor(playerid,0x49E789FF);
     case 4: SetPlayerColor(playerid,0x2A9170FF);
     case 5: SetPlayerColor(playerid,0x9ED201FF);
     case 6: SetPlayerColor(playerid,0x279B1EFF);
     case 7: SetPlayerColor(playerid,0x003366FF);
     case 8: SetPlayerColor(playerid,0xFF0606FF);
     case 9: SetPlayerColor(playerid,0xFF6600FF);
     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);
     }
    }
   }


Пользователь Cheat - Master уже 400 дней.

Я в Контакте - vk.com/buddy_fly
ProDam09 Дата: Понедельник, 22.06.2015, 15:39 | Сообщение # 2
Новичок
Сообщений: 12
Статус: Offline
Плюсик
  • Страница 1 из 1
  • 1
Поиск: