AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Heelp for this plugin (https://forums.alliedmods.net/showthread.php?t=282839)

Redhaess10 05-18-2016 17:00

Heelp for this plugin
 
hi guys ,
i serch for this plugin in the image . when you try to change team and click the botume "," it show you this menu
http://oi67.tinypic.com/2q3n5l0.jpg

siriusmd99 05-18-2016 17:49

Re: Heelp for this plugin
 
Post the source code of the plugin if you want help.

Redhaess10 05-19-2016 06:40

Re: Heelp for this plugin
 
i am serch for this plugin -_-

dr hicham 05-20-2016 16:03

Re: Heelp for this plugin
 
Try This :
PHP Code:

 #include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init()
{
    
register_plugin("Game Menu""1.0""Master Game");
    
register_clcmd("say /menu""ShowMenu");
    
register_clcmd("chooseteam""cmd_jointeam")
    
}
public 
client_connect(id)
{                 
       
client_cmd(id,"bind m ^"chooseteam^"");        
}

public 
ShowMenu(id)
{
    new 
menu menu_create("-=| \y[\rMaster Game\y] |=- \r[\yMenu\r]""mh_gMenu");


    
menu_additem(menu"\wShop Menu \r{\yChosse\r}"""0); 
    
menu_additem(menu"\wKnife Menu \r{\yChosse\r}"""0); 
    
menu_additem(menu"\wWeapons Menu \r{\yChosse\r}"""0); 
    
menu_additem(menu"\wSecure UserName  \r{\yChosse\r}"""0); // case 2
    
menu_additem(menu"\wTop 15 \r{\yChosse\r}"""0); 
    
menu_additem(menu"\wFurien VIP \r{\yVip\r}^n"""0); 
    
menu_additem(menu"\wAdmin Menu \r{\yAdmin\r}"""ADMIN_KICK); // case 0

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_setprop(menuMPROP_BACKNAME"Back");
    
menu_setprop(menuMPROP_NEXTNAME"Next");
    
menu_setprop(menuMPROP_EXITNAME"Exit");
    
menu_setprop(menuMPROP_NOCOLORS1);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
mh_gMenu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
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"Your Cmd");
        case 
1client_cmd(id"Your Cmd");
        case 
2client_cmd(id"Your Cmd");
        case 
3client_cmd(id"Your Cmd");
        case 
4client_cmd(id"Your Cmd");
        case 
5client_cmd(id"Your Cmd");
        case 
6client_cmd(id"Your Cmd");
    }

    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;
}
public 
cmd_jointeam(id)
{    
    if(!
is_user_connected(id))
        return 
1
    
    
if(cs_get_user_team(id) == CS_TEAM_CT || cs_get_user_team(id) == CS_TEAM_T)
    {
        
ShowMenu(id)
        return 
1
    
}
    
    return 
PLUGIN_CONTINUE


Is Working I Swear :)
Here Is Screenshot :
http://img.ctrlv.in/img/16/05/20/573f6d5ac2d08.bmp

dr hicham 05-20-2016 16:04

Re: Heelp for this plugin
 
If You Need Others Plugins Of This Menu Just Tell Me I'Have The Plugins


All times are GMT -4. The time now is 23:29.

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