AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Money Manager (https://forums.alliedmods.net/showthread.php?t=154215)

Nyuszy 04-04-2011 12:56

Money Manager
 
1 Attachment(s)
Money Manager v1.1

Features:
  • Money saving on disconnect
  • Money transfering to other players

Commands:
  • say /transfer <username or #userid> <money amount>
  • say /money - tell all your teammates that you need money

Cvars:
  • amx_transfer_teamonly 1 - if 1, you can send money only to teammates
  • amx_moneysave_currentmap 0 - if 1, money will be saved only on current map

Includes:
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <nvault> 


GuTo 04-05-2011 12:03

Re: Money Manager
 
cool plugin is fun

Zombiezzz 04-05-2011 16:41

Re: Money Manager
 
Quote:

Originally Posted by GuTo (Post 1444790)
cool plugin is fun

yes cool plugin is fun, i are happy.

Shadymn 04-06-2011 01:59

Re: Money Manager
 
very coool plugin it's including money util. i like it

ConnorMcLeod 04-12-2011 09:28

Re: Money Manager
 
This is redundant (unlimited money) and can't be approved.

Other plugins can do the same job such as :

http://forums.alliedmods.net/showthread.php?p=1112215
http://forums.alliedmods.net/showthread.php?p=714879
http://forums.alliedmods.net/showthread.php?p=206335

Would be better to use plugin #1 and to only manage money save and money transfer.

ConnorMcLeod 04-13-2011 12:25

Re: Money Manager
 
Back to new submission by author request.

hleV 04-13-2011 13:02

Re: Money Manager
 
Cache the values instead of using natives more than once in functions.

Nyuszy 04-13-2011 13:11

Re: Money Manager
 
what values?

Arkshine 04-13-2011 13:45

Re: Money Manager
 
He means probably cs_get_user_money. It's used severals times, when you could save the value one time before in a var. It will avoid to call more than necessary natives.The less natives you use the faster will be your code.

By the way, using pcvar is a requirement. Please update.

Nyuszy 04-13-2011 15:05

Re: Money Manager
 
so for example
Code:
if(!money) {      money = get_cvar_num("mp_startmoney") } cs_set_user_money(id, money)
instead of
Code:
if(!money)         {             nvault_touch(vault, authid)             cs_set_user_money(id, get_cvar_num("mp_startmoney"))         }         else         {             cs_set_user_money(id, money)         }
?


All times are GMT -4. The time now is 14:55.

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