Raised This Month: $ Target: $400
 0% 

Help| I need a V.I.P price menu CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zelachu
New Member
Join Date: Jun 2017
Old 06-25-2017 , 09:29   Help| I need a V.I.P price menu CS 1.6
Reply With Quote #1

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

Last edited by Zelachu; 06-25-2017 at 09:32. Reason: forgot to put in the version of CS
Zelachu is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 06-30-2017 , 10:33   Re: Help| I need a V.I.P price menu CS 1.6
Reply With Quote #2

https://forums.alliedmods.net/showpo...89&postcount=3
MOTD?
__________________
Relaxing is offline
Old 07-02-2017, 02:45
Zelachu
This message has been deleted by Zelachu.
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-02-2017 , 10:25   Re: Help| I need a V.I.P price menu CS 1.6
Reply With Quote #3

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()

Attached Files
File Type: sma Get Plugin or Get Source (vip_price_black_screen.sma - 777 views - 1.6 KB)
__________________
Thanks everyone. #miss_you_all
indraraj striker 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:46.


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