AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Instamoney (DarkShadowST) (https://forums.alliedmods.net/showthread.php?t=2131)

jtp10181 05-27-2004 09:30

Instamoney (DarkShadowST)
 
2 Attachment(s)
Just a simple port by request. I have since cleaned up the code and made some changes.

Commands:
say /moneyme - Instantly Gives a Player 16000

CVARS:

instamoney_flags
  • a - If set then the command can only be used by admins
  • b - If set then everyone will see a message saying who got money, otherwise it only shows it to the receiver
  • c - If set the plugin advertises itself when people join
Example in amxx.cfg: instamoney_flags "ac"

ChangeLog:

Version 0.3 - JTP10181
  • Changed cvar to flags to support different options
  • Changed to PCVARS
Version 0.2 - Added Steam Connection Message Support
  • Added Global Money Message Support
  • Added "You're Rich" Message If You Already Have 16000
Version 0.1 - Original Coding


Admin Level Defaulted to To E (ban/slay)

NerfMan 05-27-2004 09:39

failed to compile :cry:

jtp10181 05-27-2004 09:59

I put a .amx up. I cannot find any reason why it is not compiling on the site. It only has two includes both of which are AMXx files.... it compiles fine here.

BigBaller 05-27-2004 17:31

Online compiler works now, Bailopan just fixed it today :)

eazye 07-25-2005 01:01

textthis sounds like a awsome plugin but i cant install rite yet cause my computer crashed im gettin a new 1 in a couple days text

eazye 07-25-2005 01:02

lol sry bout th text thing lol

[]D [] []v[] []D 07-28-2005 23:22

this plugin sounds awsome cant wait!!!!!!!!!!!!!!

eazye 07-29-2005 01:58

nice plugin

[]D [] []v[] []D 07-29-2005 02:09

this plugin is awsome keep up the good work

SubStream 08-29-2005 03:23

Edit: Works flawlessly

Gai 09-15-2005 16:35

its fun when u have wc3 with shopmenu :P :roll:

dPaSqueaky 09-21-2005 08:34

how come it dont work

i put da .amxx in the plugins, i type exactly what it says(instamoney.amxx) in plugins.ini. i restarted the server n change map. still dont work

bmann_420 09-21-2005 16:07

Is there any way to make this plugin not work on the first round?
And if you want to get it approved, change [AMX] to [AMXX] :P

SubStream 09-22-2005 17:08

Edit: It works fine on my server so I don't know what the problem is you are having.

StoNeY4cs 12-08-2005 16:35

can u modify it with that:

funplugin:
set a poor option - u can use /moneyme if u have less than xxxx$ by CVAR
set a option maxmonex giving by CVAR

i not knowing how to script that

storm1811 12-09-2005 06:56

is there any way you can change it so it doesnt let anyone know when i use it.

i am full admin but change my name everytime i go in game to catch these little hackers and i dont want people to know im in game but it says

[amxx] storm1811 has been given $16000. i dont want it to say that.

btw gj

jtp10181 12-09-2005 08:30

Quote:

Originally Posted by StoNeY4cs
can u modify it with that:

funplugin:
set a poor option - u can use /moneyme if u have less than 1000$
set a option that all players can use - not only admins

i not knowing how to script that

poor option - pretty pointless if you think about it
all players - already an option, see the cvars

Quote:

is there any way you can change it so it doesnt let anyone know when i use it.
already available, but it has to be recompiled. Since 90% of the people here cant handle that I'm changing the cvar to be a flags style var.

wiggles 12-09-2005 08:48

nice job :)

StoNeY4cs 12-11-2005 18:08

should that work: ( i become a beginner)
Quote:

/*
* InstaMoney
* Created By DarkShadowST
*
* Commands:
*
* say /moneyme - Instantly Gives a Player 16000
*
*
* CVARS:
*
* sv_money 1 or 0 - If set to 1 Allows All Players To Use InstaMoney
* If set to 0 Allows Admins To Use InstaMoney
* (Admin Level Set To E (ban/slay))
*
* This Is My First Plugin...Enjoy
*
* #define MSG_GLOBAL - Makes The [AMX] Money Given To... Message Global (All Can See It)
* If You Dont want to see this or w/e...just comment it out (//#define MSG_GLOBAL)
*
* ChangeLog:
* Version 0.3 - Added sv_maxmoney - maximum of getting money
* Added sv_cashmoney - you need less money to get the maximum
*
* Version 0.2 - Added Steam Connection Message Support
* Added Global Money Message Support
* Added "You're Rich" Message If You Already Have 16000
*
* Version 0.1 - Original Coding
*
*/

#include <amxmodx>
#include <cstrike>

#define ACCESS_LEVEL ADMIN_LEVEL_E

#define MSG_GLOBAL

new sv_cashmoney
new sv_maxmoney

public plugin_init()
{
register_plugin("InstaMoney","0.3","DarkShado wST")
register_clcmd("say /moneyme","givemoney",0,": Gives a Client 16000 Money")
register_cvar("sv_money","0")

register_cvar("sv_cashmoney","1000")
register_cvar("sv_maxmoney","9000")
}


public givemoney(id)
{
if (get_cvar_num("sv_money") == 0)

{
if (!(get_user_flags(id)&ACCESS_LEVEL))
{
client_print(id,print_chat,"[AMX] InstaMoney Is Set To Admin Only Mode")
return PLUGIN_HANDLED
}
}

if (cs_get_user_money(id) > sv_maxmoney)
{
client_print(id,print_chat,"[AMX] You Don't Need Anymore Money...You're Rich")
return PLUGIN_HANDLED
}
cs_set_user_money(id,sv_cashmoney,1)
new name[32]
get_user_name(id,name,32)

#if defined MSG_GLOBAL
client_print(0,print_chat,"[AMX] %s Has Been Given $ ",sv_cashmoney,name)
#else
client_print(id,print_chat,"[AMX] You Have Been Given $ ",sv_cashmoney)
#endif
return PLUGIN_HANDLED
}
#if !defined NO_STEAM
public client_authorized(id)
#else
public client_connect(id)
#endif
{
if(get_cvar_num("sv_money") == 1) client_cmd(id, "echo ;echo ^" **** This Server Has InstaMoney By DarkShadowST Turned On, say /moneyme for $16000 ****^"")

return PLUGIN_CONTINUE
}

Silenced 04-05-2006 17:19

is this updated for 1.71

jtp10181 04-05-2006 20:08

Quote:

Originally Posted by Silenced
is this updated for 1.71

why wouldn't it work? Compile it. Let me know if you have a problem.

sixsicsixmaggot 07-05-2006 19:14

Re: Instamoney (DarkShadowST)
 
hey i got instant money working for admins but it doesnt working for non admins even tho my cvar for it is "sv_money 1" does anyone know how to fix this?

jtp10181 07-05-2006 19:42

Re: Instamoney (DarkShadowST)
 
I realized I updated this plugin a long time ago but never posted it. I just updated the main post with the new way to use the cvar and the new code. Please download the new one and try it out.

sixsicsixmaggot 07-05-2006 23:47

Re: Instamoney (DarkShadowST)
 
do i put instamoney_flags "bc" in cvars file? or whatever flags you want

sixsicsixmaggot 07-05-2006 23:53

Re: Instamoney (DarkShadowST)
 
nevermind thanks for the help i got it working you put it in amxx cfg file not cvar although thats what you posted

Noobenator 07-20-2006 00:44

Re: Instamoney (DarkShadowST)
 
How do I compile this? :(

This plugin rocks! I used it on other servers and I want to add it to mine :D

jtp10181 07-20-2006 22:14

Re: Instamoney (DarkShadowST)
 
hit "get plugin"

Rock On 01-08-2007 11:38

Re: Instamoney (DarkShadowST)
 
tyty.. karma added..

~HonDo~ 09-02-2007 02:26

Re: Instamoney (DarkShadowST)
 
hey guys, ok i got this plugin in my server but it dosent want to work, i got a few like it . any ideas, i got all proper in my files, but what could i be missing?? :( plz help thx

chris 12-17-2007 17:12

Re: Instamoney (DarkShadowST)
 
Nice!

ZiB 12-17-2007 17:34

Re: Instamoney (DarkShadowST)
 
Where do we have to upload that file to?

e5volcano 07-12-2010 00:26

Re: Instamoney (DarkShadowST)
 
I asked my server host to install the plugin for me and he replied that it crashed the server..

Does this plugin not work anymore?

damnyourefine 10-26-2010 15:07

Re: Instamoney (DarkShadowST)
 
I cannot get this plugin to work properly.

I uploaded the .amxx file to the \plugin\ directory, added 'instamoney.amxx' to plugins.ini, and followed the example:
Example in amxx.cfg: instamoney_flags "ac"

When I check the plugin status via amx_plugins it's status is 'bad load'. I have tried re-uploading the .amxx file.

Suggestions?

jtp10181 10-26-2010 21:39

Re: Instamoney (DarkShadowST)
 
Check the error log for the error message. There is always an error message.

damnyourefine 10-27-2010 16:16

Re: Instamoney (DarkShadowST)
 
Which log file would the information be in?

I don't see anything about plugins in the amxmodx\logs\ files..

Bad gamer 09-18-2018 20:39

Re: Instamoney (DarkShadowST)
 
In my amxx.cfg file I have the following:

Code:

instamoney_flags "bc"
yet every time anyone runs /moneyme, the "Admin only" message apprears. Any ideas guys? I have tried doing

Code:

instamoney_flags "ac"
with no luck.

Thanks a ton and great plugin!


All times are GMT -4. The time now is 09:19.

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