ALL IN ONE WAR MENU [Deleted]

  • Downloads are restricted to REGISTERED members only. Register today, its FREE and wont take more than 10 secs
Status
Not open for further replies.

HARSH OJHA

Member
Dec 10, 2017
57
2
8
17
HARSH OJHA submitted a new resource:

- A single menu for all war things including vote , map choose , start war , stop war and restart war

A Menu For Doing Things in PUB WAR easily..
The Menu Inculdes
1) War Vote
2) Map Vote
3) Start War
4) Stop War
5) Restart War
 

soumyadip77

Member
Moderator
Dec 10, 2017
66
6
8
19
Bro try this thing for verify he is admin....either any players can open the menu


/* PLugin by HARSH OJHA (fb.com/harsh.ojha.33) */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "AMXMODMENU"
#define VERSION "1.0"
#define AUTHOR "HarsH OJHA"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /war","verify", _, "Brings Up Menu ", ADMIN_KICK)
}

public verify(id)
if(access(id, ADMIN_KICK))
{
ShowMenu(id)
}
else
{
client_print(id, print_chat, "You have No Acess To This Command")
}

public ShowMenu(id)
{
new menu = menu_create("-=)D|A(=- WAR MENU","mh_SvMenu")

menu_additem(menu, "War Vote", "", 0);
menu_additem(menu, "Map Vote", "", 0);
menu_additem(menu, "Start War", "", 0);
menu_additem(menu, "Stop War", "", 0);
menu_additem(menu, "Restart War", "", 0);

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_setprop(menu, MPROP_PERPAGE, 7);
menu_setprop(menu, MPROP_EXITNAME, "Exit");

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public mh_SvMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}

new command[6], name[64], access, callback;

menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

switch(item)
{
case 0: client_cmd(id, "amx_vote WAR YES NO")
case 1: client_cmd(id, "amx_votemapmenu ")
case 2: client_cmd(id, "amx_startmatch")
case 3: client_cmd(id, "amx_stopmatch")
case 4: client_cmd(id, "amx_restartmatch")
}

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
 

HARSH OJHA

Member
Dec 10, 2017
57
2
8
17
It include all the things that war require ...1st voting about war then map vote and typying /war and starting match is easy than amx_startmatch....the menu provides all things :)
 

HARSH OJHA

Member
Dec 10, 2017
57
2
8
17
Bro try this thing for verify he is admin....either any players can open the menu


/* PLugin by HARSH OJHA (fb.com/harsh.ojha.33) */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "AMXMODMENU"
#define VERSION "1.0"
#define AUTHOR "HarsH OJHA"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /war","verify", _, "Brings Up Menu ", ADMIN_KICK)
}

public verify(id)
if(access(id, ADMIN_KICK))
{
ShowMenu(id)
}
else
{
client_print(id, print_chat, "You have No Acess To This Command")
}

public ShowMenu(id)
{
new menu = menu_create("-=)D|A(=- WAR MENU","mh_SvMenu")

menu_additem(menu, "War Vote", "", 0);
menu_additem(menu, "Map Vote", "", 0);
menu_additem(menu, "Start War", "", 0);
menu_additem(menu, "Stop War", "", 0);
menu_additem(menu, "Restart War", "", 0);

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_setprop(menu, MPROP_PERPAGE, 7);
menu_setprop(menu, MPROP_EXITNAME, "Exit");

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public mh_SvMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}

new command[6], name[64], access, callback;

menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

switch(item)
{
case 0: client_cmd(id, "amx_vote WAR YES NO")
case 1: client_cmd(id, "amx_votemapmenu ")
case 2: client_cmd(id, "amx_startmatch")
case 3: client_cmd(id, "amx_stopmatch")
case 4: client_cmd(id, "amx_restartmatch")
}

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Menu Can Be opened by anyone but only admins can access it :) But your are right ..abhi update kar deta ho
 

HARSH OJHA

Member
Dec 10, 2017
57
2
8
17
HARSH OJHA updated with a new update entry:



Admin Access Added :)
 
Status
Not open for further replies.