Raised This Month: $ Target: $400
 0% 

Keeping track of how much money a player has


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-19-2008 , 15:55   Keeping track of how much money a player has
Reply With Quote #1

I'm working on a plugin that remembers all of a users game info between connections to the server. I have the score portion complete but now I am working on money.

Right now I am using the below to keep a record of the players money so that when they go to disconnect I will have a record of it so I can save it to a file. Is there a better way to go about this? I put a console_print on the below just to see how often it is updated and every single cash transactions triggers it, which is good, but I was concerned about preserving CPU\efficiency.

PHP Code:
public cmd_Money(id
{
    
g_Money[id] = cs_get_user_moneyid );

__________________
Bugsy is offline
 



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 05:36.


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