Raised This Month: $ Target: $400
 0% 

Money system


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 12-25-2005 , 16:27  
Reply With Quote #9

Quote:
Originally Posted by VEN
You need an array: new money[maxplayers] or new money[maxplayers + 1]
Yea that's what I was thinking, you could also do...
Code:
// global new Money[33]

Quote:
Originally Posted by Unidentified
Um, I'm still kinda lost. :Shocked:
We mean you can do it in many ways, but your easiest option is...

1. Make a deathmsg event to catch whenever the killer (read_data(1)) kills the victim (read_data(2)) and give him a money reward, like this:
Code:
money[id]+5

2. Then you can make a menu that is accessed by a client command registered in your public plugin_init(), the easist way to make a menu, I'd say is, follow this: XeroBlood's Menu Tutorial

And in your menu code for the cases, (using case 0 (the first one as an example)) you can do the code like this:
Code:
case 0: {    // code for that option, example giving hp: set_user_health()    money[id]-5    // take away 5 dollars after the use... }
Peli is offline
Send a message via MSN to Peli
 



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 16:12.


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