daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void CreateWardenMenu(int client)
  2. {
  3.   Menu menu = CreateMenu(h_wardenmenu);
  4.   menu.SetTitle("WardenMenu");
  5.   menu.AddItem("color","Obarvit hráče");
  6.   menu.AddItem("gamemodes","Herní mody",(g_teamgames == true || g_gamemodes == true || b_box == true || b_hungergames == true)?(b_gm_s4s == true || b_gm_race == true?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED):(CountPlayersInTeam(CS_TEAM_T, true) < 2)?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
  7.   menu.AddItem("teamgames",g_teamgames == true?"TeamGames [Vypnout]":IsPlayerVIP(client)?"TeamGames":"TeamGames [Pouze pro VIP]",(g_gamemodes == true || b_box == true || b_hungergames == true)?ITEMDRAW_DISABLED:IsPlayerVIP(client)?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
  8.   menu.AddItem("box",(b_box == true || b_box_pre == true)?"Box [Vypnout]":"Box [Zapnout]",(g_teamgames == true || g_gamemodes == true || b_hungergames == true)?ITEMDRAW_DISABLED:(CountPlayersInTeam(CS_TEAM_T, true) < 2)?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
  9.   menu.AddItem("hg", (b_hungergames == true || b_hungergames_pre == true)?"Hunger Games [Vypnout]":(IsPlayerVIP(client)?(CountPlayersInTeam(CS_TEAM_T, true) < 2?"Hunger Games [Nedostatek hráčů]":"Hunger Games [Zapnout]"):"Hunger Games [Poze pro VIP]"),(g_teamgames == true || g_gamemodes == true || b_box == true)?ITEMDRAW_DISABLED:(IsPlayerVIP(client)?(CountPlayersInTeam(CS_TEAM_T, true) < 2?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT):ITEMDRAW_DISABLED));
  10.   menu.AddItem("others","Ostatní");
  11.   menu.ExitButton = true;
  12.   menu.Display(client,MENU_TIME_FOREVER);
  13. }
  14. public void CreateColorMenu(int client)
  15. {
  16.   Menu menu = CreateMenu(h_colormenu);
  17.   menu.SetTitle("Zvol barvu");
  18.   for(int i; i < sizeof(color_s); i++)
  19.   {
  20.     menu.AddItem(color_s[i],color_s[i]);
  21.   }
  22.   menu.ExitBackButton = true;
  23.   menu.Display(client,MENU_TIME_FOREVER);
  24. }
  25. public void CreateOtherMenu(int client)
  26. {
  27.   Menu menu = CreateMenu(h_othermenu);
  28.   menu.SetTitle("Ostatní");
  29.   menu.AddItem("stopky",Stopky?"Stopky [VYPNOUT]":"Stopky [ZAPNOUT]");
  30.   menu.AddItem("noblock",Noblock?"NoBlock [VYPNOUT]":"NoBlock [ZAPNOUT]");
  31.   menu.AddItem("kostka","Hod kostkou");
  32.   menu.AddItem("priklady","Příklady");
  33.   menu.AddItem("otazky","Otázky");
  34.   menu.ExitBackButton = true;
  35.   menu.Display(client,MENU_TIME_FOREVER);
  36. }
  37. public void CreateJailAdminMenu(int client)
  38. {
  39.   Menu menu = CreateMenu(h_jailadminmenu);
  40.   menu.SetTitle("JailAdmin Menu");
  41.   menu.AddItem("mody", "Správa modů");
  42.   menu.ExitButton = true;
  43.   menu.Display(client, MENU_TIME_FOREVER);
  44. }
  45. public void CreateJailAdminMenu_Mody(int client)
  46. {
  47.   Menu menu = CreateMenu(h_jailadminmenu_mody);
  48.   menu.SetTitle("Správa modů");
  49.   menu.AddItem("prestrelka",b_gm_prestrelka_played == true?"Přestřelka [POVOLIT]":"Přestřelka [ZAKAZAT]");
  50.   menu.AddItem("schovka",b_gm_schovka_played == true?"Schovka [POVOLIT]":"Schovka [ZAKAZAT]");
  51.   menu.AddItem("zombieday",b_gm_zombieday_played == true?"Zombie Day [POVOLIT]":"Zombie Day [ZAKAZAT]");
  52.   menu.AddItem("freezetagday",b_gm_tagday_played == true?"Freeze Tag Day [POVOLIT]":"Freeze Tag Day [ZAKAZAT]");
  53.   menu.AddItem("lms",b_gm_lms_played == true?"Last man standing [POVOLIT]":"Last man standing [ZAKAZAT]");
  54.   menu.AddItem("loveckyden",b_gm_lovecky_played == true?"Lovecký den [POVOLIT]":"Lovecký den [ZAKAZAT]");
  55.   menu.ExitBackButton = true;
  56.   menu.Display(client, MENU_TIME_FOREVER);
  57. }
  58. public void CreateKostkaMenu(int client)
  59. {
  60.   Menu menu = CreateMenu(h_kostkamenu);
  61.   menu.SetTitle("Hod kostkou");
  62.   menu.AddItem("6","Kostka 6 čísel");
  63.   menu.AddItem("12","Kostka 12 čísel");
  64.   menu.AddItem("24","Kostka 24 čísel");
  65.   menu.AddItem("32","Kostka 32 čísel");
  66.   menu.AddItem("64","Kostka 64 čísel");
  67.   menu.ExitBackButton = true;
  68.   menu.Display(client, MENU_TIME_FOREVER);
  69. }
  70. public void CreatePrikladyMenu(int client)
  71. {
  72.   Menu menu = CreateMenu(h_prikladymenu);
  73.   menu.SetTitle("Příklady");
  74.   menu.AddItem("scitani","Sčítání");
  75.   menu.AddItem("odecitani","Odečítání");
  76.   menu.AddItem("nasobeni","Násobení");
  77.   menu.AddItem("deleni","Dělení");
  78.   menu.ExitBackButton = true;
  79.   menu.Display(client, MENU_TIME_FOREVER);
  80. }
  81. public void CreateOtazkyMenu(int client)
  82. {
  83.   Menu menu = CreateMenu(h_otazkymenu);
  84.   menu.SetTitle("Zvol kategorii");
  85.   menu.AddItem("ceny","Ceny");
  86.   menu.AddItem("puvod","Původy zbraní");
  87.   menu.AddItem("vseobecne","Všeobecné");
  88.   menu.AddItem("hlmesta","Hlavní města");
  89.   menu.ExitBackButton = true;
  90.   menu.Display(client, MENU_TIME_FOREVER);
  91. }
  92. public void CreateTeamGamesMenu(int client)
  93. {
  94.   char buffer[64];
  95.   Menu menu = CreateMenu(h_teamgamesmenu);
  96.   menu.SetTitle("TeamGames Menu");
  97.   menu.AddItem("teamy","Vytvořit teamy");
  98.   if(StrEqual(tg_selectedtype, "")) Format(buffer,sizeof(buffer), "Typ: [Zvolte]");
  99.   else Format(buffer,sizeof(buffer), "Typ: [%s]",tg_selectedtype);
  100.   menu.AddItem("type", buffer);
  101.   if(tg_weapons == true)
  102.   {
  103.     menu.AddItem("random",tg_random?"Náhodné zbraně [ANO]":"Náhodné zbraně [NE]");
  104.     if(StrEqual(tg_weapon, "")) Format(buffer,sizeof(buffer), "Vybrat zbraň");
  105.     else Format(buffer,sizeof(buffer), "Zbraň [%s]",tg_weapon);
  106.     menu.AddItem("selectwep",buffer,tg_random?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
  107.     menu.AddItem("knife",tg_knifedmg?"Poškození nožem [ANO]":"Poškození nožem [NE]");
  108.     Format(buffer,sizeof(buffer), "Poškození zbraní [%0.1fX]",tg_weapon_damage);
  109.     menu.AddItem("dmg",buffer);
  110.     menu.AddItem("start", "! START !",CountTeamGamesTeams() < 2?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
  111.   }
  112.   else if(tg_knife == true)
  113.   {
  114.     menu.AddItem("onehit", tg_knifeonehit?"Zabití jedním hitem [ANO]":"Zabití jedním hitem [NE]");
  115.     menu.AddItem("leftattack", tg_knifeleftattack?"Povolit slabý útok(LMB) [ANO]":"Povolit slabý útok(LMB) [NE]");
  116.     menu.AddItem("rightattack", tg_kniferightattack?"Povolit silný útok(RMB) [ANO]":"Povolit silný útok(RMB) [NE]");
  117.     menu.AddItem("start", "! START !",(tg_knifeleftattack == false && tg_kniferightattack == false)?ITEMDRAW_DISABLED:(CountTeamGamesTeams() < 2?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT));
  118.   }
  119.   else if(tg_granatovana == true)
  120.   {
  121.     Format(buffer,sizeof(buffer), "Poškození granátu [%0.1fX]",tg_he_damage);
  122.     menu.AddItem("hedmg",buffer);
  123.     menu.AddItem("start", "! START !",CountTeamGamesTeams() < 2?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
  124.   }
  125.   else if(tg_vybijena == true)
  126.   {
  127.     menu.AddItem("start", "! START !",CountTeamGamesTeams() < 2?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
  128.   }
  129.   menu.ExitBackButton = true;
  130.   menu.Display(client, MENU_TIME_FOREVER);
  131. }
  132. public void CreateTeamGamesTypeMenu(int client)
  133. {
  134.   Menu menu = CreateMenu(h_teamgamestypemenu);
  135.   menu.SetTitle("Zvolte typ TG");
  136.   menu.AddItem("Zbraně", "Zbraně");
  137.   menu.AddItem("Nože", "Nože");
  138.   menu.AddItem("Granátovaná", "Granátovaná");
  139.   menu.AddItem("Vybíjená", "Vybíjená");
  140.   menu.ExitBackButton = true;
  141.   menu.Display(client, MENU_TIME_FOREVER);
  142. }
  143. public void CreateTeamGamesSWMenu(int client)
  144. {
  145.   Menu menu = CreateMenu(h_teamgamesswmenu);
  146.   menu.SetTitle("Zvol zbraň");
  147.   for(int i; i < sizeof(s_allweaponslist);i++)
  148.   {
  149.     menu.AddItem(s_allweaponslist[i],s_allweaponslist_names[i]);
  150.   }
  151.   menu.ExitBackButton = true;
  152.   menu.Display(client, MENU_TIME_FOREVER);
  153. }
  154. public void CreateTeamGamesDmgMenu(int client)
  155. {
  156.   char buffer[32];
  157.   char sfloat[10];
  158.   Menu menu = CreateMenu(h_teamgamesdmgmenu);
  159.   menu.SetTitle("Zvol násobek poškození");
  160.   for(float i = 0.2; i <= 3.01; i+=0.2)
  161.   {
  162.     if(i == 1.0) Format(buffer,sizeof(buffer), "Normální");
  163.     else Format(buffer,sizeof(buffer), "%0.1fX",i);
  164.     FloatToString(i, sfloat,sizeof(sfloat));
  165.     menu.AddItem(sfloat,buffer);
  166.   }
  167.   menu.ExitBackButton = true;
  168.   menu.Display(client, MENU_TIME_FOREVER);
  169. }
  170. public void CreateTeamGamesHeDmgMenu(int client)
  171. {
  172.   char buffer[32];
  173.   char sfloat[10];
  174.   Menu menu = CreateMenu(h_teamgameshedmgmenu);
  175.   menu.SetTitle("Zvolte násobek poškození");
  176.   for(float i = 0.2; i <= 2.01; i+=0.2)
  177.   {
  178.     if(i == 1.0) Format(buffer,sizeof(buffer), "Normální");
  179.     else Format(buffer,sizeof(buffer), "%0.1fX",i);
  180.     FloatToString(i, sfloat,sizeof(sfloat));
  181.     menu.AddItem(sfloat,buffer);
  182.   }
  183.   menu.ExitBackButton = true;
  184.   menu.Display(client, MENU_TIME_FOREVER);
  185. }
  186. public void CreateTeamGamesTeamMenu(int client)
  187. {
  188.   char buffer[64];
  189.   Menu menu = CreateMenu(h_teamgamesteammenu);
  190.   Format(buffer,sizeof(buffer), "Přesuň hráče do teamu \nPočet T bez teamu: %i", TG_GetAlivePlayersInTeam(CS_TEAM_T));
  191.   menu.SetTitle(buffer);
  192.   for(int i = 0; i < sizeof(tg_teams);i++)
  193.   {
  194.     IntToString(i,buffer,sizeof(buffer));
  195.     menu.AddItem(buffer,tg_teams[i]);
  196.   }
  197.   menu.ExitBackButton = true;
  198.   menu.Display(client, MENU_TIME_FOREVER);
  199.  
  200. }
  201. public void CreateGameModesMenu(int client)
  202. {
  203.   Menu menu = CreateMenu(h_gamemodesmenu);
  204.   if(b_gm_s4s == false && b_gm_race == false)
  205.   {
  206.     menu.SetTitle("Herní mody");
  207.     //menu.AddItem("Freeday", "Freeday");
  208.     menu.AddItem("Přestřelka", b_gm_prestrelka_played == true?"Přestřelka [Hráno tuto mapu]":(b_g_disabled == true?"Přestřelka (60s uběhlo)":"Přestřelka"),b_gm_prestrelka_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT));
  209.     menu.AddItem("Schovka", IsPlayerVIP(client)?(b_gm_schovka_played == true?"Schovka [Hráno tuto mapu]":(b_g_disabled == true?"Schovka (60s uběhlo)":"Schovka")):"Schovka [Pouze pro VIP]",IsPlayerVIP(client)?(b_gm_schovka_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT)):ITEMDRAW_DISABLED);
  210.     menu.AddItem("Zombieday", b_gm_zombieday_played == true?"Zombie Day [Hráno tuto mapu]":(b_g_disabled == true?"Zombie Day (60s uběhlo)":"Zombie Day"),b_gm_zombieday_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT));
  211.     menu.AddItem("TagDay", IsPlayerVIP(client)?(b_gm_tagday_played == true?"Freeze Tag Day [Hráno tuto mapu]":(b_g_disabled == true?"Freeze Tag Day (60s uběhlo)":"Freeze Tag Day")):"Freeze Tag Day [Pouze pro VIP]",IsPlayerVIP(client)?(b_gm_tagday_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT)):ITEMDRAW_DISABLED);
  212.     menu.AddItem("LMS", IsPlayerVIP(client)?(b_gm_lms_played == true?"Last Man Standing [Hráno tuto mapu]":(b_g_disabled == true?"Last Man Standing (60s uběhlo)":"Last Man Standing")):"Last Man Standing [Pouze pro VIP]",IsPlayerVIP(client)?(b_gm_lms_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT)):ITEMDRAW_DISABLED);
  213.     //menu.AddItem("LMS", b_gm_lms_played == true?"Last man standing [Hráno tuto mapu]":(b_g_disabled == true?"Last Man Standing (60s uběhlo)":"Last man standing"),b_gm_lms_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT));
  214.     menu.AddItem("Lovecky", b_gm_lovecky_played == true?"Lovecký den [Hráno tuto mapu]":(b_g_disabled == true?"Lovecký den (60s uběhlo)":"Lovecký den"),b_gm_lovecky_played == true?ITEMDRAW_DISABLED:(b_g_disabled == true?ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT));
  215.     menu.AddItem("s4s", b_gm_s4s == true?"Shot 4 Shot [Vypnout]":IsPlayerVIP(client)?"Shot 4 Shot":"Shot 4 Shot [Pouze pro VIP]",IsPlayerVIP(client)?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
  216.     menu.AddItem("race", b_gm_race == true?"Závod [Vypnout]":IsPlayerVIP(client)?"Závod":"Závod [Pouze pro VIP]",IsPlayerVIP(client)?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
  217.   }
  218.   else if(b_gm_s4s == true)
  219.   {
  220.     menu.AddItem("s4s", b_gm_s4s == true?"Shot 4 Shot [Vypnout]":IsPlayerVIP(client)?"Shot 4 Shot":"Shot 4 Shot [Pouze pro VIP]",IsPlayerVIP(client)?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
  221.   }
  222.   else if(b_gm_race == true)
  223.   {
  224.     menu.AddItem("race", b_gm_race == true?"Závod [Vypnout]":IsPlayerVIP(client)?"Závod":"Závod [Pouze pro VIP]",IsPlayerVIP(client)?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
  225.   }
  226.   menu.ExitBackButton = true;
  227.   menu.Display(client, MENU_TIME_FOREVER);
  228. }
  229. public void CreateMenuLMS(int client)
  230. {
  231.   Menu menu = CreateMenu(h_gamemodeslmsmenu);
  232.   menu.SetTitle("Zvol typ");
  233.   menu.AddItem("choose", "Výběr zbraně z menu");
  234.   //menu.AddItem("random", "Náhodné zbraně");
  235.   menu.ExitBackButton = true;
  236.   menu.Display(client, MENU_TIME_FOREVER);
  237. }
  238. public void CreateMenuS4S(int client)
  239. {
  240.   char buffer[64];
  241.   char wepbuff[32];
  242.   strcopy(wepbuff,sizeof(wepbuff), s_gm_s4s_weapon);
  243.   Menu menu = CreateMenu(h_gamemodess4smenu);
  244.   menu.SetTitle("Shot 4 Shot");
  245.   menu.AddItem("team", "Přiřadit do teamu");
  246.   ReplaceString(wepbuff, sizeof(wepbuff), "weapon_", "");
  247.   if(StrEqual(s_gm_s4s_weapon, "")) Format(buffer,sizeof(buffer), "Zbraň: [Zvolte]");
  248.   else Format(buffer,sizeof(buffer), "Zbraň: [%s]",wepbuff);
  249.   menu.AddItem("wep", buffer);
  250.   menu.AddItem("start", "Start");
  251.   menu.AddItem("refresh", "Obnovit");
  252.   menu.ExitBackButton = true;
  253.   menu.Display(client, MENU_TIME_FOREVER);
  254. }
  255. public void CreateMenuS4SWep(int client)
  256. {
  257.   Menu menu = CreateMenu(h_gamemodess4swepmenu);
  258.   menu.SetTitle("Zvol zbraň");
  259.   for(int i; i < sizeof(s_allweaponslist);i++)
  260.   {
  261.     menu.AddItem(s_allweaponslist[i],s_allweaponslist_names[i]);
  262.   }
  263.   menu.ExitBackButton = true;
  264.   menu.Display(client, MENU_TIME_FOREVER);
  265. }
  266. public void CreateRaceMenu(int client)
  267. {
  268.   char buffer[64];
  269.   Menu menu = CreateMenu(h_gm_race);
  270.   menu.SetTitle("Závody");
  271.   menu.AddItem("pridathr", "Přidat hráče");
  272.   menu.AddItem("start", b_race_start?"Začátek závodu [Změnit]":"Začátek závodu");
  273.   menu.AddItem("konec", b_race_konec?"Konec závodu [Změnit]":"Konec závodu");
  274.   Format(buffer, sizeof(buffer), "Počet přeživších [%i]", i_race_stayalive);
  275.   menu.AddItem("alive", i_race_stayalive == 0?"Počet přeživších":buffer);
  276.   menu.AddItem("run", "Start",(b_race_start == true && b_race_konec == true && i_race_stayalive > 0)?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
  277.   menu.ExitBackButton = true;
  278.   menu.Display(client, MENU_TIME_FOREVER);
  279. }
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