Raised This Month: $ Target: $400
 0% 

Plugin that save's user's money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Reel mafioso
Member
Join Date: Oct 2014
Location: wouldn't you like to kno
Old 04-27-2015 , 06:22   Plugin that save's user's money
Reply With Quote #1

Hello. I'm looking for a code that will let me store people's money. Here's how it should work:
Player changes difficulty by some command, his and EVERYONE else's money is stored, after it's stored the server proceeds to restart the round (in order to change some cvars). Once the restart is done, the player's get their money back.
It would be easy for just 1 person, the guy who changes the difficulty with cs_get_user_money and cs_set_user_money, but storing multiple values then setting them is troublesome.
I was thinking of storing it into an array, but I don't know how to store into array's or read data from them.

Please help me out guys.

Last edited by Reel mafioso; 04-27-2015 at 15:17.
Reel mafioso 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 18:17.


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