Raised This Month: $ Target: $400
 0% 

How to make the shop menu transparent


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
caked
Member
Join Date: Dec 2012
Old 08-19-2013 , 04:36   How to make the shop menu transparent
Reply With Quote #1

How do you make the shop menu transparent for e.g if u dont have enough money it is transparent. Another e.g

Shop Menu:

Shield
Boots of Speed
Gravity

if you dont have enough money it is transparent

Last edited by caked; 08-19-2013 at 04:37.
caked is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-19-2013 , 04:37   Re: How to make the shop menu transparent
Reply With Quote #2

At the menu item :

PHP Code:
menu_additem(menu"Name of Item""1"cs_get_user_money(id) >= get_pcvar_num(cvar_item_cost) ? 1<<31
__________________
Kia is offline
caked
Member
Join Date: Dec 2012
Old 08-19-2013 , 04:43   Re: How to make the shop menu transparent
Reply With Quote #3

What do i have 2 include?
caked is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-19-2013 , 05:04   Re: How to make the shop menu transparent
Reply With Quote #4

Nothing. You just make an normal menu and add

PHP Code:
cs_get_user_money(id) >= get_pcvar_num(YOUR_CVAR_HERE) ? 1<<31
after the const info[] = ""
__________________
Kia is offline
caked
Member
Join Date: Dec 2012
Old 08-20-2013 , 03:19   Re: How to make the shop menu transparent
Reply With Quote #5

It is giving me an error saying undefined symbol "cvar_item_cost"

new menu = menu_create("\rShop Menu:", "cmdShop_handler");

menu_additem(menu, "Name of Item", "1", cs_get_user_money(id) >= get_pcvar_num(cvar_item_cost) ? 0 : 1<<31);
menu_additem(menu, "\wFlash Grenade", "2", 0);
menu_additem(menu, "\wSmoke Grenade", "3", 0);
menu_additem(menu, "\wShield", "4", 0);
menu_additem(menu, "\wSpeed", "5", 0);
menu_additem(menu, "\wGravity", "6", 0);
caked is offline
lobopack23
Senior Member
Join Date: Jun 2009
Location: California , United Stat
Old 08-20-2013 , 03:25   Re: How to make the shop menu transparent
Reply With Quote #6

he is giving you an example of what you should already have.. if you want a whole plugin..maybe you can just say so -.-
__________________
- Steam: Lobopack23 - Link
Contact me if you need any help with Pokemod.
- 2nd Generation Pokemod - Link
(new skills, items, and pokemons)
- Buy Xp - Link
lobopack23 is offline
caked
Member
Join Date: Dec 2012
Old 08-20-2013 , 04:52   Re: How to make the shop menu transparent
Reply With Quote #7

No just why giving me that error i put it in new menu
caked is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-20-2013 , 04:58   Re: How to make the shop menu transparent
Reply With Quote #8

You need to define cvar_time_cost first.
__________________
Kia is offline
caked
Member
Join Date: Dec 2012
Old 08-20-2013 , 06:14   Re: How to make the shop menu transparent
Reply With Quote #9

Can you make me any random item cost so i can just test it out if it works thx
caked is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-20-2013 , 06:43   Re: How to make the shop menu transparent
Reply With Quote #10

Just define cvar_item_cost and give it any num er.
__________________
Kia 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 15:54.


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