Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnMapStart()
- {
- AddCommandListener(CommandListener);
- }
- public Action:CommandListener(client, const String:command[], args)
- {
- if (StrEqual(command, "callvote", false))
- {
- new String:arg1[16];
- GetCmdArg(1, arg1, sizeof(arg1));
- if (StrEqual(arg1, "Kick", false))
- {
- DisplayVoteKickMenu(client)
- }
- }
- }
- public Action:DisplayVoteKickMenu(client)
- {
- if (IsClientInGame(client) && GetClientTeam(client) == 2)
- {
- new Handle:menu = CreateMenu(MenuHandler_KickReason);
- SetMenuTitle(menu, "Выберите причину кика:");
- AddMenuItem(menu, "0", "Нуб");
- AddMenuItem(menu, "1", "Расист");
- AddMenuItem(menu, "2", "Не адекват");
- AddMenuItem(menu, "3", "Даун");
- AddMenuItem(menu, "4", "Распиздятор");
- AddMenuItem(menu, "5", "ЛОЛ");
- SetMenuExitButton(menu, true);
- DisplayMenu(menu, client, MENU_TIME_FOREVER);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement