Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //haterade boss chooser edit 3
- public SkipHalePanelH(Handle:menu, MenuAction:action, param1, param2)
- {
- if (IsClientConnected(param1))
- {
- if (action == MenuAction_Select)
- {
- if (param2==1)
- bSkipNextHale=false;
- else
- bSkipNextHale=true;
- }
- PrintToChat(param1,"%t","skip_hale_2");
- }
- }
- public BossChooserPanelH(Handle:menu, MenuAction:action, param1, param2)
- {
- if (IsClientConnected(param1))
- {
- if (action == MenuAction_Select)
- {
- if (param2==1)
- Incoming=0;
- else if (param2==2)
- Incoming=1;
- else if (param2==3)
- Incoming=2;
- else if (param2==4)
- Incoming=4;
- }
- PrintToChat(param1,"%t","Boss_Chooser_Reselect");
- }
- }
- public Action:SkipHalePanel(client, Args)
- {
- if (!Enabled || !IsClientConnected(client))
- return Plugin_Continue;
- if (client!=FindNextHale(Hale))
- {
- PrintToChat(client,"%t","skip_hale");
- return Plugin_Continue;
- }
- new Handle:panel = CreatePanel();
- decl String:s[256];
- Format(s,256,"%t","skip_hale_q");
- SetPanelTitle(panel, s);
- Format(s,256,"%t","skip_hale_da");
- DrawPanelItem(panel, s);
- Format(s,256,"%t","skip_hale_niet");
- DrawPanelItem(panel, s);
- SendPanelToClient(panel, client, SkipHalePanelH,9001);
- CloseHandle(panel);
- return Plugin_Continue;
- }
- public Action:BossChoosePanel(client, Args)
- {
- if (!Enabled || !IsClientConnected(client))
- return Plugin_Continue;
- if (client!=FindNextHale(Hale))
- {
- PrintToChat(client,"%t","skip_hale");
- return Plugin_Continue;
- }
- if (!IsPlayerDonator(client))
- {
- return Plugin_Continue;
- }
- new Handle:panel = CreatePanel();
- decl String:s[256];
- Format(s,256,"%t","Boss_Chooser_Title");
- SetPanelTitle(panel, s);
- Format(s,256,"%t","Boss_Hale");
- DrawPanelItem(panel, s);
- Format(s,256,"%t","Boss_Vagineer");
- DrawPanelItem(panel, s);
- Format(s,256,"%t","Boss_HHHjr");
- DrawPanelItem(panel, s);
- Format(s,256,"%t","Boss_CBS");
- DrawPanelItem(panel, s);
- SendPanelToClient(panel, client, BossChooserPanelH, 9001);
- CloseHandle(panel);
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement