AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Help| I need a V.I.P price menu CS 1.6 (https://forums.alliedmods.net/showthread.php?t=298893)

Zelachu 06-25-2017 09:29

Help| I need a V.I.P price menu CS 1.6
 
I saw on different cs 1.6 servers that if you type in like /vip or /price, you will get a black menu with text that the prices are on. It's a black screen like the one before you get the team menu. I would like a tutorial on how to make one or one that says this:

"V.I.P prices:

1 month = 5€

3 months = 10€

5 months = 15€

Contact Zelachu on Skype."

i want all of it to be in green

Relaxing 06-30-2017 10:33

Re: Help| I need a V.I.P price menu CS 1.6
 
https://forums.alliedmods.net/showpo...89&postcount=3
MOTD?

indraraj striker 07-02-2017 10:25

Re: Help| I need a V.I.P price menu CS 1.6
 
1 Attachment(s)
This should work

PHP Code:


#include <amxmodx>

#define TASK_BLACK 1111
new g_screenfade;

public 
plugin_init()
{
    
register_plugin("Vip price menu""0.1""26-{indra}");
    
register_clcmd("say /vip""Show_price_Menu");
    
register_clcmd("say_team /vip""Show_price_Menu");
    
register_clcmd("say /price""Show_price_Menu");
    
register_clcmd("say_team /price""Show_price_Menu");
    
    
g_screenfade get_user_msgid("ScreenFade")
}

public 
Show_price_Menu(id)
{
    new 
menu menu_create("V.I.P prices:""mh_vip_price");
    
    
menu_additem(menu"1 month = 5Euro"""0); 
    
menu_additem(menu"3 months = 10Euro"""0); 
    
menu_additem(menu"5 months = 15Euro"""0);
    
menu_additem(menu"Contact Zelachu on Skype."""0);
    
set_task(0.5,"show_black",id+TASK_BLACK_,_"b");
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED;
}


public 
mh_vip_price(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        
hide_black(id);
        return 
PLUGIN_HANDLED;
    }
    
    switch(
item)
    {
        case 
0,1,2,3: {
            
hide_black(id)
            
        }
        
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
show_black(id)
{
    
id -= TASK_BLACK;
    
message_begin(MSG_ONE g_screenfade, {0,0,0}, id)
    
write_short(1<<12)
    
write_short(1<<12)
    
write_short(0x0004)
    
write_byte(0)
    
write_byte(0)
    
write_byte(0)
    
write_byte(255)
    
message_end()
}

public 
hide_black(id)
{
    
remove_task(id+TASK_BLACK);
    
message_begin(MSG_ONE g_screenfade, {0,0,0}, id)
    
write_short(1<<12)
    
write_short(1<<12)
    
write_short(0x0004)
    
write_byte(0)
    
write_byte(0)
    
write_byte(0)
    
write_byte(0)
    
message_end()




All times are GMT -4. The time now is 01:21.

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