daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     new String:arg1[16];
  10.     GetCmdArg(1, arg1, sizeof(arg1));
  11.     if (StrEqual(arg1, "Kick", false))
  12.     {
  13.         DisplayVoteKickMenu(client)
  14.     }
  15. }
  16.  
  17. public Action:DisplayVoteKickMenu(client)
  18. {
  19.     if (IsClientInGame(client) && GetClientTeam(client) == 2)
  20.     {
  21.         new Handle:menu = CreateMenu(MenuHandler_Language);
  22.         SetMenuTitle(menu, "Выберите причину кика.");
  23.         AddMenuItem(menu, "0", "Нуб");
  24.         AddMenuItem(menu, "1", "Расист");
  25.         AddMenuItem(menu, "2", "Не адекват");
  26.         AddMenuItem(menu, "3", "Даун");
  27.         AddMenuItem(menu, "4", "Распиздятор");
  28.         AddMenuItem(menu, "5", "ЛОЛ");
  29.         SetMenuExitButton(menu, true);
  30.         DisplayMenu(menu, client, MENU_TIME_FOREVER);
  31.     }
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top