Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.90 KB | None | 0 0
  1. public OnMapStart()
  2. {
  3.     AddCommandListener(CommandListener);
  4. }
  5.  
  6. public Action:CommandListener(client, const String:command[], args)
  7. {
  8.     if (StrEqual(command, "callvote", false))
  9.     {
  10.         new String:arg1[16];
  11.         GetCmdArg(1, arg1, sizeof(arg1));
  12.         if (StrEqual(arg1, "Kick", false))
  13.         {
  14.             DisplayVoteKickMenu(client)
  15.         }
  16.     }
  17. }
  18.  
  19. public Action:DisplayVoteKickMenu(client)
  20. {
  21.     if (IsClientInGame(client) && GetClientTeam(client) == 2)
  22.     {
  23.         new Handle:menu = CreateMenu(MenuHandler_KickReason);
  24.         SetMenuTitle(menu, "Выберите причину кика:");
  25.         AddMenuItem(menu, "0", "Нуб");
  26.         AddMenuItem(menu, "1", "Расист");
  27.         AddMenuItem(menu, "2", "Не адекват");
  28.         AddMenuItem(menu, "3", "Даун");
  29.         AddMenuItem(menu, "4", "Распиздятор");
  30.         AddMenuItem(menu, "5", "ЛОЛ");
  31.         SetMenuExitButton(menu, true);
  32.         DisplayMenu(menu, client, MENU_TIME_FOREVER);
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement