AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   More money than 16000 2.0 (2/1/08) (https://forums.alliedmods.net/showthread.php?t=24003)

Ramono 02-08-2006 14:30

More money than 16000 2.0 (2/1/08)
 
3 Attachment(s)
This plugin basicly lets your max money go OVER 16000

Cvars:
amx_maxmoney set the max amount of money that a player can have ( Default: 99999)
amx_startmoney use this instead of mp_startmoney ( Default: 800 )

Commands:
amx_setmoney ADMIN_LEVEL_A (@team - @all - nickname) (amount) to set money for a player
(Don't use other setmoney plugins this can work strange)

Changelog:
Code:

Version 1.0: First port

Version 1.1: Fixed sv_restartround money bug.
Version 1.1.1: Fixed long sv_restartround bug.

Version 1.2: added pcvar for amxx 1.70 or higher.

Version 1.3: Currect display (+ -)money at any time.
    (old version alway display +money when the money above MONEY_TIER.)
 Fixed when amx_startmoney setup above 16000, sv_restartround the start money, Thanks jopmako

Version 2.0: Made compatible with most other plugins.

I think this should work for cz too, please post if does/doesnt.
AmxModX 1.70 and above.

Have fun using this plugin!

HOWTO MAKE OTHER PLUGINS COMPATIBLE WITH THIS PLUGIN (Do Not edit unlimited_money.sma):
1. Set up a local compiler (might be already set up at amxmodx/scripting)
2. go to the /include folder and put money_ul.inc posted below into it.
3. Open the plugin you want to make compatible with it (The .sma file) with any text editor
4. find #include <amxmodx>
5. UNDER #include <amxmodx> make a new line and put #include <money_ul> there
6. Replace all cs_set_user_money with cs_set_user_money_ul
7. Replace all cs_get_user_money with cs_get_user_money_ul
8. Run compile.exe wait a minute and the pluginname.amxx should come out in the /compiled map if there are no errors.

NOTE: DO NOT EDIT THIS PLUGIN IF YOU WANT TO MAKE IT COMPATIBLE. YOU HAVE TO EDIT ALL OTHER PLUGINS THAT WORK WITH MONEY
Yes, I got PM'ed two times with this problem.

This will work with +- 90% of the plugins.

Good luck.

SweatyBanana 02-08-2006 15:05

Hasn't this been made?

d4rkst4r 02-08-2006 15:09

yes! i always wanted this, but i never thought someone would make it

kILL-jOY 02-08-2006 15:57

is there a max amount, like could to much crash or lag the server.

whats the most that can be shown in the money display

Ramono 02-08-2006 15:58

I never tryed anything above 99999 i think thats the limit too

If it goes above 99999 it doesnt even fit on client's screen :D

jay7 02-09-2006 20:02

This doesn't work flawlessly just read the posts on it's original forums.

GHW_Chronic 02-09-2006 20:40

not to say theres anything wrong with the plugin, but

http://forums.alliedmods.net/showthread.php?p=158105

works fine. "flawlessly".

Deviance 02-10-2006 14:02

Quote:

Originally Posted by GHW_Chronic
not to say theres anything wrong with the plugin, but

http://forums.alliedmods.net/showthread.php?p=158105

works fine. "flawlessly".

Its not same thing :P


gj! ;)

Ramono 02-11-2006 05:16

Ok, i found a bug,
When useing sv_restartround it keeps the money.
So i need a event that registers a new game
Can any1 give it to me?

Obbin 02-11-2006 05:23

Hmm.. the only thing i can think about is checking if sv_restart(round) changed in server_frame(). That's not an effective way, but may work until you found anything else.

VEN 02-11-2006 06:12

Code:
// #include <amxmodx> new bool:g_new_game public plugin_init() {     register_event("TextMsg", "event_new_game", "a", "2=#Game_Commencing", "2=#Game_will_restart_in")     register_event("HLTV", "event_new_round", "a", "1=0", "2=0") } public event_new_game() {     g_new_game = true } public event_new_round() {     if (g_new_game) {         g_new_game = false         // do something here     } }

Ramono 02-11-2006 06:14

Found already and updated

VEN 02-11-2006 06:19

Well, anyway i recommend pay attention to that example. It's better because it catches exact new game event but not "Game will restart in..." text message. Let's say you set sv_restartround to 60. With your way i'll get money change before actual new game. So if you care about correct way than pay attention. In other case don't worry.

Ramono 02-11-2006 06:26

Gonna update it.

EDIT: Done.

Switchie 03-26-2006 05:58

nice plugin :D

THX

m@tte 04-06-2006 12:18

Found a bug. buyxp doesn't work. I played untill I got $100.000 then wrote buyxp. I bought xp but the money didn't change. it was still $100000. And if i wrote buyxp again it says that i need another $16.000 to buy xp.

Striker 04-06-2006 22:16

yeah,

it would be nice if you could add wc3-mod support.

Ramono 04-14-2006 17:53

Tryed to fix already

The actual money you have is 8000
but if i make it 16000 i cant track it anymore, so you have to live with it.

SubStream 05-10-2006 18:32

awesome plugin this is way better than giving 16k over and over again less reconnects also... I love the idea/plugin and plan on using it.

Cryonic 05-11-2006 04:00

Code:

//// unlimited_money.sma
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(26) : error 017
: undefined symbol "get_pcvar_num"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(62) : error 017
: undefined symbol "get_pcvar_num"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(200) : error 01
7: undefined symbol "get_pcvar_num"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(230) : warning
204: symbol is assigned a value that is never used: "maxmoney"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(230) : warning
204: symbol is assigned a value that is never used: "startmoney"
//
// 3 Errors.
// Could not locate output file compiled\unlimited_money.amx (compile failed).
//
// Compilation Time: 0,09 sec


awpticaL 05-11-2006 04:05

Quote:

Originally Posted by Cryonic
Code:

//// unlimited_money.sma
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(26) : error 017
: undefined symbol "get_pcvar_num"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(62) : error 017
: undefined symbol "get_pcvar_num"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(200) : error 01
7: undefined symbol "get_pcvar_num"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(230) : warning
204: symbol is assigned a value that is never used: "maxmoney"
// D:\shero\cstrike\addons\amxmodx\scripting\unlimited_money.sma(230) : warning
204: symbol is assigned a value that is never used: "startmoney"
//
// 3 Errors.
// Could not locate output file compiled\unlimited_money.amx (compile failed).
//
// Compilation Time: 0,09 sec


Compiled fine for me :?

Cryonic 05-11-2006 04:59

problem solved

Ramono 05-11-2006 08:49

:/
You use the amxx 1.60 compiler.
This plugin is for amxx 1.70

Edit:
Ah i see u have solved it.

SubStream 05-11-2006 11:34

Yah the pcvar is only in 1.70 and above :)

Cryonic 05-12-2006 08:46

Yep. posted it in my old server folder :oops:

BOOM 06-26-2006 21:08

Re: More money than 16000 Version 1.2!
 
nice plugin, gonna try it now :)

Vu0hi 08-27-2006 11:59

Re: More money than 16000 Version 1.2!
 
Im new here.. This sound awesome, and i have downloaded it and so.. But where do i have to place the file?

jopmako 08-29-2006 06:58

Re: More money than 16000 Version 1.2!
 
1 Attachment(s)
nice plugin

i make a little change for it: update to 1.3
Code:

1, currect display (+ -)money at any time.
    (old version alway display +money when the money above MONEY_TIER)
 2, fixed when amx_startmoney setup above 16000, sv_restartround the start money incorrect


Ramono 08-30-2006 18:55

Re: More money than 16000 Version 1.2!
 
Imma test it tomorow, and imma add pcvar as well
Edit: already done :P, im gonna update it
Thanks for the good work.
+karma him guys!
Me too btw :)

ali_zkz 08-31-2006 04:10

Re: More money than 16000 1.3 ( 31/8/06 )
 
wow very cool
im very glad that u can fix the bug
thx a lot
btw i m from china
my English not very good

Cladyu 12-11-2006 13:38

Re: More money than 16000 1.3 ( 31/8/06 )
 
Nice, but i'll use GHW_Cronic's CS bank. Anyway, +karma for both of you!

Cladyu 12-17-2006 09:57

Re: More money than 16000 1.3 ( 31/8/06 )
 
I thought to try this one too, but it shows me only 8000$ in hud. After round starts, when you are suposed to get ~2000$, it stays 8000. What's the problem?

Ramono 12-17-2006 10:52

Re: More money than 16000 1.3 ( 31/8/06 )
 
I don't seem to have the problem, did you change anything in the plugin, update to amxx 1.76b, try to reinstall the plugin, i cant find anything to cause this.

drdark 12-17-2006 12:32

Re: More money than 16000 1.3 ( 31/8/06 )
 
it doesnt work in my server it does not identify the plugin when i write amx_plgins it sayas unknown plugin and bad load

Ywa*NL 12-17-2006 12:35

Re: More money than 16000 1.3 ( 31/8/06 )
 
Working perfectly here. Thank you!

Cladyu 12-17-2006 15:40

Re: More money than 16000 1.3 ( 31/8/06 )
 
3 Attachment(s)
Now, this problem should be placed in the scripting help forum right now... but i'll post it here. I modified GHW simple bank so it would begin saving money over 50000, but it's this one that doesn't display over 8000. When I buy a weapon, I have 8000 before & after I buy it. I noticed above the money display (that -xxxx when you buy), something like -60000:shock:. I also use last man bet plugin, but I don't think it has anything to do with it.
Note: I think I modified only amx_startmoney cvar to 50000 in the plugin.

Newbie_Tinkz 02-04-2007 01:29

Re: More money than 16000 1.3 ( 31/8/06 )
 
This is about the max money going above 16k right? Does the plugin include inside the amxx command of giving money to players. E.g. amx_money @CT 99999 for admin giving fellow players money?

Ramono 02-04-2007 12:07

Re: More money than 16000 1.3 ( 31/8/06 )
 
Quote:

Originally Posted by Ramono (Post 206335)
Commands:
amx_setmoney ADMIN_LEVEL_A (@team - @all - nickname) (amount) to set money for a player (Don't use other setmoney plugins this can work strange)

Read the first post?

Newbie_Tinkz 02-06-2007 09:21

Re: More money than 16000 1.3 ( 31/8/06 )
 
Ok, sorry about that . I didn't read thoroughly just scanning through lolx. Oh by the way the money i tested it out is cool but is there any access flag like a , b , c , d , e for it ??? Because some admins of my server I am giving access to them.

Ramono 02-06-2007 10:47

Re: More money than 16000 1.3 ( 31/8/06 )
 
You need ADMIN_LEVEL_A i added it in the first post.


All times are GMT -4. The time now is 08:04.

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