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

[HELP] Menu problem!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kosidone
Member
Join Date: Aug 2014
Old 09-13-2015 , 02:17   [HELP] Menu problem!
Reply With Quote #1

solved

Last edited by Kosidone; 11-11-2015 at 14:00.
Kosidone is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 09-13-2015 , 08:25   Re: [HELP] Menu problem!
Reply With Quote #2

You tried to put 5 plugins in 1, but it does not go too well , some commands are repeated several times as plugin_init() 2x...

You can try to use the original plugins and and invite with their say commands.

You understand, It would look like this:

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

public plugin_init() {
    
register_clcmd("menu""player");
    
register_clcmd("chooseteam""handled");
}
public 
handled(id) {
    if ( 
cs_get_user_team(id) == CS_TEAM_UNASSIGNED )
        return 
PLUGIN_CONTINUE
    
    player
(id)
    return 
PLUGIN_HANDLED
}
public 
playerid )
{
    new 
menu menu_create"\rPlayer Menu!:""menu_handler" );
    
menu_additemmenu"\wRules&Infos""");
    
menu_additemmenu"\wPrivate Message""");
    
menu_additemmenu"\wMute Player"""0);
    
menu_additemmenu"\wVoteBan Player"""0);
    
menu_additemmenu"\wSpectate(Admins)"""ADMIN_BAN );
    
    
menu_setpropmenuMPROP_EXITMEXIT_ALL );
    
    
menu_displayidmenu);
    
}

public 
menu_handleridmenuitem )
{
    switch( 
item )
    {
        case 
0:
        {
            
engclient_cmd(id"say""motd");
        }
        case 
1:
        {
            
engclient_cmd(id"say""!pm");
        }
        case 
2:
        {
            
engclient_cmd(id"say""mute");
        }
        case 
3:
        {
            
engclient_cmd(id"say""!voteban");
        }
        case 
4:
        {
            
engclient_cmd(id"say""!spec");
        }
        case 
MENU_EXIT:
        {
            
client_printidprint_chat"You exited the menu..." );
        }
    }
    
menu_destroymenu );
    return 
PLUGIN_HANDLED;

__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Kosidone
Member
Join Date: Aug 2014
Old 09-13-2015 , 16:46   Re: [HELP] Menu problem!
Reply With Quote #3

thanks hartman !
you make the things more easier
Kosidone 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 08:36.


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