Raised This Month: $ Target: $400
 0% 

Money Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Nyuszy
Senior Member
Join Date: Apr 2009
Old 04-04-2011 , 12:56   Money Manager
Reply With Quote #1

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> 
Attached Files
File Type: sma Get Plugin or Get Source (money.sma - 963 views - 4.8 KB)

Last edited by Nyuszy; 04-13-2011 at 08:08.
Nyuszy is offline
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 04-05-2011 , 12:03   Re: Money Manager
Reply With Quote #2

cool plugin is fun
__________________
GuTo is offline
Send a message via Skype™ to GuTo
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 04-05-2011 , 16:41   Re: Money Manager
Reply With Quote #3

Quote:
Originally Posted by GuTo View Post
cool plugin is fun
yes cool plugin is fun, i are happy.
__________________
Zombiezzz is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 04-06-2011 , 01:59   Re: Money Manager
Reply With Quote #4

very coool plugin it's including money util. i like it
Shadymn is offline
Old 04-12-2011, 08:22
rx1983
This message has been deleted by ConnorMcLeod. Reason: Useless comment
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-12-2011 , 09:28   Re: Money Manager
Reply With Quote #6

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2011 , 12:25   Re: Money Manager
Reply With Quote #7

Back to new submission by author request.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-13-2011 , 13:02   Re: Money Manager
Reply With Quote #8

Cache the values instead of using natives more than once in functions.
__________________
hleV is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 04-13-2011 , 13:11   Re: Money Manager
Reply With Quote #9

what values?
Nyuszy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2011 , 13:45   Re: Money Manager
Reply With Quote #10

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.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:53.


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