Raised This Month: $51 Target: $400
 12% 

Menu for classic


Post New Thread Reply   
 
Thread Tools Display Modes
Hartmann
Senior Member
Join Date: Nov 2014
Old 09-18-2015 , 18:10   Re: Menu for classic
Reply With Quote #11

PHP Code:
client_cmd(id"say ..."); 
Will not work on all players.
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 09-21-2015 , 06:22   Re: Menu for classic
Reply With Quote #12

Quote:
Originally Posted by Hartmann View Post
why matter alive or no?
PLayers will can't join to "Ct/Terro"
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 09-21-2015 , 06:25   Re: Menu for classic
Reply With Quote #13

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Fast Menu""0.0""AMXX Team");
    
register_clcmd("say /menu""ShowMenu"_"");
    
register_clcmd("chooseteam""ShowMenu"_"");
    
register_clcmd"chooseteam""ShowMenu" );
    
register_clcmd"jointeam""ShowMenu" );
}

public 
ShowMenu(id)
{
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED;
    
    new 
menu menu_create("\rFurien BlackSchooL Menu""BlackSchooL_Menu");

    
menu_additem(menu"Rank"""0); // case 0
    
menu_additem(menu"Top15"""0); // case 1
    
menu_additem(menu"Shop"""0); // case 2
    
menu_additem(menu"VIPS - ONLINE"""0); // case 3
    
menu_additem(menu"Timeleft"""0); // case 4
    
menu_additem(menu"NextMap"""0); // case 5
    
menu_additem(menu"Server Rules"""0); // case 6

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
BlackSchooL_Menu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

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

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1

callback);

    switch(
item)
    {
        case 
0client_cmd(id"say /rank");
        case 
1client_cmd(id"say /top15");
        case 
2client_cmd(id"say /shop");
        case 
3client_cmd(id"say /vips");
        case 
4client_cmd(id"say timeleft");
        case 
5client_cmd(id"say nextmap");
        case 
6client_cmd(id"say /rules");
    }

    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;

FIXED
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 09-21-2015 , 15:37   Re: Menu for classic
Reply With Quote #14

Quote:
Originally Posted by Dr Zayd View Post
PLayers will can't join to "Ct/Terro"
Isn't it better my example.
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
m@rou@ne
Junior Member
Join Date: Sep 2015
Location: morroco
Old 09-29-2015 , 09:53   For Pressing m = Open Menu
Reply With Quote #15

#include <amxmodx>

public plugin_init()
{
register_plugin("Fast Menu", "0.0", "AMXX Team");
register_clcmd("say /menu", "ShowMenu", _, "");
}
public client_connect(id)
{
client_cmd(id,"bind m ^"say /menu^"");
}

public ShowMenu(id)
{
new menu = menu_create("\rFurien BlackSchooL Menu", "BlackSchooL_Menu");

menu_additem(menu, "Rank", "", 0); // case 0
menu_additem(menu, "Top15", "", 0); // case 1
menu_additem(menu, "Shop", "", 0); // case 2
menu_additem(menu, "VIPS - ONLINE", "", 0); // case 3
menu_additem(menu, "Timeleft", "", 0); // case 4
menu_additem(menu, "NextMap", "", 0); // case 5
menu_additem(menu, "Server Rules", "", 0); // case 6

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public BlackSchooL_Menu(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, "say /rank");
case 1: client_cmd(id, "say /top15");
case 2: client_cmd(id, "say /shop");
case 3: client_cmd(id, "say /vips");
case 4: client_cmd(id, "say timeleft");
case 5: client_cmd(id, "say nextmap");
case 6: client_cmd(id, "say /rules");
}

menu_destroy(menu);

return PLUGIN_HANDLED;
}
__________________
m@rou@ne is offline
dr hicham
Senior Member
Join Date: Sep 2015
Location: Morocco
Old 10-02-2015 , 16:02   Re: Menu for classic
Reply With Quote #16

m@rou@ne Plz make the code in Quotes or PHP .
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
dr hicham 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 07:40.


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