Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. //haterade boss chooser edit 3
  2. public SkipHalePanelH(Handle:menu, MenuAction:action, param1, param2)
  3. {
  4. if (IsClientConnected(param1))
  5. {
  6. if (action == MenuAction_Select)
  7. {
  8. if (param2==1)
  9. bSkipNextHale=false;
  10. else
  11. bSkipNextHale=true;
  12. }
  13. PrintToChat(param1,"%t","skip_hale_2");
  14. }
  15. }
  16.  
  17. public BossChooserPanelH(Handle:menu, MenuAction:action, param1, param2)
  18. {
  19. if (IsClientConnected(param1))
  20. {
  21. if (action == MenuAction_Select)
  22. {
  23. if (param2==1)
  24. Incoming=0;
  25. else if (param2==2)
  26. Incoming=1;
  27. else if (param2==3)
  28. Incoming=2;
  29. else if (param2==4)
  30. Incoming=4;
  31. }
  32. PrintToChat(param1,"%t","Boss_Chooser_Reselect");
  33. }
  34. }
  35.  
  36. public Action:SkipHalePanel(client, Args)
  37. {
  38. if (!Enabled || !IsClientConnected(client))
  39. return Plugin_Continue;
  40. if (client!=FindNextHale(Hale))
  41. {
  42. PrintToChat(client,"%t","skip_hale");
  43. return Plugin_Continue;
  44. }
  45. new Handle:panel = CreatePanel();
  46. decl String:s[256];
  47. Format(s,256,"%t","skip_hale_q");
  48. SetPanelTitle(panel, s);
  49. Format(s,256,"%t","skip_hale_da");
  50. DrawPanelItem(panel, s);
  51. Format(s,256,"%t","skip_hale_niet");
  52. DrawPanelItem(panel, s);
  53. SendPanelToClient(panel, client, SkipHalePanelH,9001);
  54. CloseHandle(panel);
  55. return Plugin_Continue;
  56. }
  57.  
  58. public Action:BossChoosePanel(client, Args)
  59. {
  60. if (!Enabled || !IsClientConnected(client))
  61. return Plugin_Continue;
  62. if (client!=FindNextHale(Hale))
  63. {
  64. PrintToChat(client,"%t","skip_hale");
  65. return Plugin_Continue;
  66. }
  67. if (!IsPlayerDonator(client))
  68. {
  69. return Plugin_Continue;
  70. }
  71. new Handle:panel = CreatePanel();
  72. decl String:s[256];
  73. Format(s,256,"%t","Boss_Chooser_Title");
  74. SetPanelTitle(panel, s);
  75. Format(s,256,"%t","Boss_Hale");
  76. DrawPanelItem(panel, s);
  77. Format(s,256,"%t","Boss_Vagineer");
  78. DrawPanelItem(panel, s);
  79. Format(s,256,"%t","Boss_HHHjr");
  80. DrawPanelItem(panel, s);
  81. Format(s,256,"%t","Boss_CBS");
  82. DrawPanelItem(panel, s);
  83. SendPanelToClient(panel, client, BossChooserPanelH, 9001);
  84. CloseHandle(panel);
  85. return Plugin_Continue;
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement