Raised This Month: $ Target: $400
 0% 

adding prices


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 11-23-2006 , 11:34   adding prices
Reply With Quote #1

anyone know how to add a price to something, such as:
amx_buymodel1 = i want when someone buys it that they have to pay money for it.
__________________
i stop around here and there.

Last edited by Da_sk8rboy; 11-23-2006 at 11:38.
Da_sk8rboy is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-23-2006 , 11:45   Re: adding prices
Reply With Quote #2

Code:
new g_Money = cs_get_user_money(id); cs_set_user_money(id,(g_Money - whatever the price))

If you need a better example , click on my weapon jam plugin in the bottom of my signiture, I used this to charge players for items from my menu .

Last edited by The Specialist; 11-23-2006 at 11:55.
The Specialist is offline
Send a message via AIM to The Specialist
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 11-23-2006 , 12:38   Re: adding prices
Reply With Quote #3

could you help me on aim?
__________________
i stop around here and there.
Da_sk8rboy is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-23-2006 , 12:45   Re: adding prices
Reply With Quote #4

yeah let me log on real quick then message me
The Specialist is offline
Send a message via AIM to The Specialist
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-23-2006 , 12:56   Re: adding prices
Reply With Quote #5

Try not to use HN if you do not know what the prefixes mean..

g_ is a global variable.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
The Specialist
BANNED
Join Date: Nov 2006
Old 11-23-2006 , 13:49   Re: adding prices
Reply With Quote #6

well i do know what Hungarian Notation is .
The Specialist is offline
Send a message via AIM to The Specialist
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 06:51.


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