AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   adding prices (https://forums.alliedmods.net/showthread.php?t=47656)

Da_sk8rboy 11-23-2006 11:34

adding prices
 
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.

The Specialist 11-23-2006 11:45

Re: adding prices
 
Code:
new g_Money = cs_get_user_money(id); cs_set_user_money(id,(g_Money - whatever the price))
:wink:
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 .

Da_sk8rboy 11-23-2006 12:38

Re: adding prices
 
could you help me on aim?

The Specialist 11-23-2006 12:45

Re: adding prices
 
yeah let me log on real quick then message me :up:

SweatyBanana 11-23-2006 12:56

Re: adding prices
 
Try not to use HN if you do not know what the prefixes mean..

g_ is a global variable.

The Specialist 11-23-2006 13:49

Re: adding prices
 
:wink: well i do know what Hungarian Notation is .


All times are GMT -4. The time now is 06:51.

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