This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

~#| Admin Menu |#~


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
RiFGanG
Member
Join Date: May 2015
Location: AL-Houceïma, Morroco
Old 06-23-2015 , 11:09   ~#| Admin Menu |#~
Reply With Quote #1

~#| Admin Menu |#~

[R#G] Admin Menu

Ban
KicK

Slay/Slap

Change Map
Vote Map

Restart Round

PHP Code:
#include <amxmodx>
#include <ColorChat>

public plugin_init()
{
    
register_plugin("Admin Menu""1.0""BooHLaaL");
    
register_clcmd("say /admin""Show_Admin_Menu"_"Open Admin Menu",ADMIN_KICK);
}

public 
Show_Admin_Menu(id)
{
    if(!(
get_user_flags(id) & ADMIN_KICK))
    {
        
ColorChat(id,GREEN,"^4[R#G] ^3Sorry^4, ^1This ^4Menu ^1Only For ^4Admin ^3!")
        return 
PLUGIN_HANDLED
    
}
    new 
menu menu_create("\r[R#G] \yAdmin Menu""Admin_Menu");

    
menu_additem(menu"\rBan"""ADMIN_BAN);
    
menu_additem(menu"\rKicK^n"""ADMIN_KICK);
    
menu_additem(menu"\ySlay/Slap^n"""ADMIN_SLAY);
    
menu_additem(menu"\yChange Map"""ADMIN_MAP);
    
menu_additem(menu"\yVote Map^n"""ADMIN_MAP);
    
menu_additem(menu"\dRestart Round"""0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
Admin_Menu(idmenuitem)
{
    if(
item == MENU_BACK)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0client_cmd(id,"amx_banmenu")
        case 
1client_cmd(id,"amx_kickmenu")
        case 
2client_cmd(id,"amx_slapmenu")
        case 
3client_cmd(id,"amx_mapmenu")
        case 
4client_cmd(id,"amx_votemapmenu")
        case 
5Rs(id)
    }

    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;
}
public 
Rs(id)
{
    static 
szName[32];
    
get_user_name(idszName 33)
    
server_cmd("sv_restartround 1")
    
ColorChat(id,GREEN,"^4[R#G] ^3Admin ^4%s ^3Restart The Round."szName)

__________________
AL-Houceïma

[RiF#GanG] - [RiF#BoYs] - [Bario#Briro] - [Morroco]

Last edited by RiFGanG; 06-25-2015 at 13:17.
RiFGanG is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-23-2015 , 12:19   Re: ~#| Admin Menu |#~
Reply With Quote #2

Would you please stop post such kind of plugins?
We already have amxmodmenu, no one needs this for anything.
__________________
Jhob94 is offline
MaSTeR64
Member
Join Date: Apr 2015
Location: Serbia <3
Old 06-23-2015 , 15:43   Re: ~#| Admin Menu |#~
Reply With Quote #3

Quote:
Originally Posted by Jhob94 View Post
Would you please stop post such kind of plugins?
We already have amxmodmenu, no one needs this for anything.
Agreed.
MaSTeR64 is offline
daylox
Junior Member
Join Date: Oct 2014
Location: Morocco
Old 06-23-2015 , 17:03   Re: ~#| Admin Menu |#~
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
Would you please stop post such kind of plugins?
We already have amxmodmenu, no one needs this for anything.
+1
daylox is offline
RiFGanG
Member
Join Date: May 2015
Location: AL-Houceïma, Morroco
Old 06-23-2015 , 19:52   Re: ~#| Admin Menu |#~
Reply With Quote #5

ThanK You
__________________
AL-Houceïma

[RiF#GanG] - [RiF#BoYs] - [Bario#Briro] - [Morroco]
RiFGanG is offline
Linkin Hisoka
Senior Member
Join Date: Sep 2014
Location: Morocco, Marrakesh
Old 06-23-2015 , 23:39   Re: ~#| Admin Menu |#~
Reply With Quote #6

do not post such as this plugin again in alliedmods
if you want post such as this plugin click here
__________________
Moroccan and proud
Linkin Hisoka is offline
ZiZox
Senior Member
Join Date: Sep 2014
Location: Morocco
Old 07-15-2015 , 07:49   Re: ~#| Admin Menu |#~
Reply With Quote #7

Quote:
Originally Posted by Linkin Hisoka View Post
do not post such as this plugin again in alliedmods
if you want post such as this plugin click here
...
__________________
ZiZox is offline
Send a message via Skype™ to ZiZox
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode