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)

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


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

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