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:
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...
}