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

Rules Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 01-03-2016 , 09:18   Rules Menu
Reply With Quote #1

i need a rules menu where there is the rule and you press 1 to go read the other rule and at the end of all the rules you can accept or decline, if you decline the server kick you, and a way to force read the rules to somebody, thanks!
Rivotril is offline
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 07-09-2016 , 19:42   Re: Rules Menu
Reply With Quote #2

you want see rules in hud oke wait
__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 07-09-2016 , 19:46   Re: Rules Menu
Reply With Quote #3

Ok I Finish Code This Plugin !

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

#define PLUGIN "See Rules Auto / With Commands"
#define VERSION "1.0"
#define AUTHOR "Amine Belokda"

new const g_rules[] = "server rules here !!"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
          
set_task15.0"Rules"0""0"b"  ); 
     
register_clcmd("say /rules""Rules");
}
public 
Rules(id)
{
    
    
set_hudmessage(025500.00.2306.012.0)
    
show_hudmessage(id"%s"g_rules)

__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-09-2016 , 20:20   Re: Rules Menu
Reply With Quote #4

Who can punish this guy? Obviously he have not idea what are doing.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-10-2016 , 05:54   Re: Rules Menu
Reply With Quote #5

This plugin will force you to read the rules and display rule menu after 6 seconds
Test it
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Rules_menu""1.0""26-{indra}");
}

public 
client_putinserver(id)
{
set_task(6.0,"Show_rules_menu",id);
}

public 
Show_rules_menu(id)
{
    new 
menu menu_create("Rules Menu 1""rules_menu_handler");
    
    
menu_additem(menu"Read other Rule \y[press 1]"""0); 
    
menu_additem(menu"Please dont try to crash our server"""0);
    
menu_additem(menu"Please dont abuse in server"""0);
    
menu_additem(menu"Be polite with everyone!"""0);
    
menu_additem(menu"Please try to follow our rules"""0);
    
    
menu_display(idmenu0);
}

public 
rules_menu_handler(idmenuitem)
{

    switch(
item)
    {
        case 
0: {
        
        
other_rules_menu(id)
        }
        case 
1,2,3,
        
        {
        
Show_rules_menu(id);
        }
        case 
MENU_EXIT:
        {
            
Show_rules_menu(id);
        }
    }
    
menu_destroy(menu);
}

public 
other_rules_menu(id)
{
    new 
menu menu_create("Rules Menu 2""other_rules_menu_handler");

    
menu_additem(menu"Dont try to cheat in server"""0); 
    
menu_additem(menu"Warning: dont abuse in server"""0);
    
menu_additem(menu"Please follow our rules"""0);
    
menu_additem(menu"Accept the Rule"""0);
    
menu_additem(menu"Decline the Rule"""0);
    
    
menu_display(idmenu0);
}

public 
other_rules_menu_handler(idmenuitem)
{

    switch(
item)
    {
        case 
0,1,2: {
        
        
other_rules_menu(id);
        }
        case 

        {
        
client_print(idprint_chat"Thank you for accepting the rule :)");
        }
        case 

        {
         
server_cmd("kick #%i ^"You kicked becoz you didnt accept the rule^""get_user_userid(id));
        }
        case 
MENU_EXIT:
        {
            
other_rules_menu(id);
        }
    }
    
menu_destroy(menu);

Attached Files
File Type: sma Get Plugin or Get Source (rules_menu.sma - 490 views - 1.7 KB)
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 07-10-2016 , 22:59   Re: Rules Menu
Reply With Quote #6

Quote:
Originally Posted by EFFx View Post
Who can punish this guy? Obviously he have not idea what are doing.
-_-
__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
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:02.


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