[SCRIPTl market

This script allows players to buy things for their own benefit.

Market contains:

  1. medkit (1 medkit costs 3 dollars)
  2. helmet (1 helmet costs 4 dollars)
  3. shield (costs 12 dollars)
  4. refill (costs 7 dollars)

To buy something from the market, you just have to put the command /get [object]. Example: /get medkit

Helmet: the helmet will protect you from a headshot and it will break, at the moment of breaking it will send you a message saying "Your helmet has been broken!, now you have (amount) helmet's." (you can buy more than 1)

Medkit: Restores your life to 100%, to use it you must type /m (you can buy more than 1)

Refill: Restores your hp, grenades, blocks and ammo at 100%.

Shield: Counts like a bulletproof vest, the damage of weapons will makes you less damage, when you buy 1 shield the durability of your bulletproof vest goes up to 200%, the bulletproof vest does not last forever, every shot you get in the body will lower the durability of your bulletproof vest, if the durability reaches 0% it will send you a message saying "Your shield has been broken!" and the damage of the weapons return to normal.

The maximum durability is 400%, be careful because this only protects your body, if someone shot you in the head the damage of the weapon returns to normal.
Your shield will continue to work until the durability reaches 0%.

Commands:
*/get [object]
*/mystuff
*/m

/m = if you have medkit's you can use this command.

/get [object] = if no object is passed, the script sends you a message saying the things available to buy.
If the object does't exist, the script send you a message saying "the [object]  was not found on the maket." + the things available to buy.

/mystuff = to see everything you have bought and currently have: amount of dollars, helmet's, medkit's and The durability of your bulletproof vest (shield).

To get dollars, you must kill 1 player, since 1 kill += 1 dollar.

Shield + helmet = OP
Thanks.


market.py (5.06 KB)

awesome idea, mega! this sounds like it would definitely add challenge and something to look forward more to when killing deuces.