Raised This Month: $32 Target: $400
 8% 

[REQ] Admin Menu CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-22-2012 , 15:38   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #51

Not possible.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
zENK
Member
Join Date: Aug 2011
Old 01-22-2012 , 17:36   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #52

Quote:
Originally Posted by drekes View Post
Not possible.

What is not possible to make ?
zENK is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-22-2012 , 18:10   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #53

It's not possible to show images on the screen like that.
It is possible to do it with sprites maybe, but i'm not gonna try that.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
zENK
Member
Join Date: Aug 2011
Old 01-23-2012 , 08:19   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #54

Quote:
Originally Posted by drekes View Post
It's not possible to show images on the screen like that.
It is possible to do it with sprites maybe, but i'm not gonna try that.
You're trolling right?
zENK is offline
Dabb
Senior Member
Join Date: Sep 2010
Location: Romania - Hunedoara
Old 01-23-2012 , 15:36   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #55

Quote:
Originally Posted by drekes View Post
Try this:

PHP Code:
#define COLORCHAT

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#if defined COLORCHAT
    #include <colorchat>
#endif

#pragma semicolon    1
#define VERSION     "1.0.0"

new const g_szPrefix[] = "AMXX";

enum eCurrentMenu
{
    
None
    
Ban
    
Kick
    
Slap
    
Slay
    
Transfer
};

new const 
g_szMenuOptions[eCurrentMenu][] = 
{
    
""
    
"Ban"
    
"Kick"
    
"Slap"
    
"Slay"
    
"Transfer"
};

    
new 
eCurrentMenug_ChosenMenu[33]
    , 
g_iMainMenu
;


public 
plugin_init()
{
    
register_plugin("Admin Menu"VERSION"Drekes");
    
    
register_clcmd("say /adminmenu""CmdAdminMenu"ADMIN_CFG);
    
    new 
szData[64];
    
formatex(szDatacharsmax(szData), "\y[\r%s\y]\w Admin Menu"g_szPrefix);
    
    
g_iMainMenu menu_create(szData"HandleMainMenu");
    for(new 
eCurrentMenuBaneCurrentMenui++)
    {
        
formatex(szDatacharsmax(szData), "%s menu"g_szMenuOptions[i]);
        
menu_additem(g_iMainMenuszData"");
    }
}


public 
CmdAdminMenu(idiLevel)
{
    if(
get_user_flags(id) & iLevel)
        
menu_display(idg_iMainMenu);

    else
        Print(
id"You don't have access to this command!");
    return 
PLUGIN_HANDLED;
}


public 
HandleMainMenu(idiMenuiItem)
{
    if(
iItem != MENU_EXIT)
    {
        
g_ChosenMenu[id] = eCurrentMenu: (iItem 1);
        
ShowPlayerMenu(id);    
    }

    return 
PLUGIN_HANDLED;
}


ShowPlayerMenu(id)
{
    new 
iPlayers[32]
        , 
iNum
        
iMenu
        
szName[32]
    ;
    
    
formatex(szNamecharsmax(szName), "%s menu:"g_szMenuOptions[g_ChosenMenu[id]]);
    
iMenu menu_create(szName"HandlePlayerMenu");
    
    switch(
g_ChosenMenu[id])
    {
        case 
SlapSlay:
            
get_players(iPlayersiNum"a");
            
        default:
            
get_players(iPlayersiNum);
    }
    
    for(new 
0iNumi++)
    {
        
get_user_name(iPlayers[i], szNamecharsmax(szName));
        
menu_additem(iMenuszName"");
    }
    
    
menu_display(idiMenu);
}


public 
HandlePlayerMenu(idiMenuiItem)
{
    if(
iItem != MENU_EXIT)
    {
        new 
iAccess
            
szCmd[11]
            , 
szName[32]
            , 
iCallback
            
iPlayer
        
;

        
menu_item_getinfo(iMenuiItemiAccessszCmdcharsmax(szCmd)
            , 
szNamecharsmax(szName), iCallback);
        
        if((
iPlayer find_player("a"szName)))
        {
            new 
szAdminName[32];
            
get_user_name(idszAdminNamecharsmax(szName));
            
            switch(
g_ChosenMenu[id])
            {
                case 
Ban:
                {
                    
copy(szCmdcharsmax(szCmd), "banned");                
                    
server_cmd("banid ^"#%d^" ^"30^" ^"Banned by ADMIN %s^"", get_user_userid(iPlayer), szAdminName);
                
}
                
                case 
Kick:
                {
                    
copy(szCmdcharsmax(szCmd), "kicked");
                    
server_cmd("kick ^"#%d^" ^"Kicked by ADMIN %s^"", get_user_userid(iPlayer), szAdminName);
                
}
                
                case 
Slap:
                {
                    
copy(szCmdcharsmax(szCmd), "slapped");
                    
user_slap(iPlayer0);
                }
                
                case 
Slay:
                {
                    
copy(szCmdcharsmax(szCmd), "slayed");
                    
user_kill(iPlayer);
                }
                    
                case 
Transfer:
                {
                    
copy(szCmdcharsmax(szCmd), "transfered");
                    
                    
cs_set_user_team(iPlayercs_get_user_team(iPlayer) == CS_TEAM_T CS_TEAM_CT CS_TEAM_T);
                    
ExecuteHamB(Ham_CS_RoundRespawniPlayer);
                }
            }

            Print(
0"ADMIN ^04%s^01 %s ^04%s"szAdminNameszCmdszName);
        }
        
        else
            Print(
id"The selected player can't be found.");
    }
    
    
g_ChosenMenu[id] = None;
    
    
menu_destroy(iMenu);
    return 
PLUGIN_HANDLED;
}


Print(
id, const szMessage[], any:...)
{
    static 
szBuffer[192];
    
vformat(szBuffercharsmax(szBuffer), szMessage3);

    
#if defined COLORCHAT
        
ColorChat(idGREEN"[%s]^01 %s"g_szPrefixszBuffer);
    
#else
        
replace_all(szBuffercharsmax(szBuffer), "^01""");
        
replace_all(szBuffercharsmax(szBuffer), "^03""");
        
replace_all(szBuffercharsmax(szBuffer), "^04""");
        
        
client_print(idprint_chat"[%s] %s"g_szPrefixszBuffer);
    
#endif

can you add gag in this menu ?
Dabb is offline
Send a message via Yahoo to Dabb
SparkyFromiFun
Member
Join Date: Jan 2012
Old 01-23-2012 , 17:42   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #56

find a includes for this selection, i think that is a default amxmodx plugin, if you use a amxbans
__________________
My New moded Warcraft3 servers:

SparkyFromiFun is offline
Zaagam
Member
Join Date: Jun 2010
Old 06-10-2012 , 04:45   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #57

The admin menu dosent work o:
Zaagam is offline
yRestrict
BANNED
Join Date: Apr 2019
Old 08-04-2020 , 09:00   Re: [REQ] Admin Menu CS 1.6
Reply With Quote #58

Quote:
Originally Posted by zENK View Post
You're trolling right?
I use an amxbans that I have here, so in case I think I will not use it but there is no voting for maps
yRestrict is offline
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 18:04.


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