PDA

View Full Version : Slots Machine


skitaila03
07-27-2015, 07:59
Description:
A slot machine is a casino gambling machine with three or more reels which spin when a button is pushed, slot machines include a currency detector that validates the money inserted to play.
I wanted to make a plugin similar with real life slots machine, but my plugin work with numbers instead of fruits or anything else.
I will try to explain menu options.

Try

The calcul formula for win is slots_try * bet * row numbers
The calcul formula for loose is slots_try * bet
Free try option, when you join you can try for free first when you press this button, but free try only work with slots_freetry set on 1
When you press this button, you can play the gamble, but you can play only if you have a bet higher or equivalent with 1 and tokens higher or equivalent with cvar slots_try

Increase Bet

With this option you can incrase the bet

Decrease Bet

With this option you can decrease the bet, bet can't be lower than 0.

Invest

With this option you can invest some dolars to buy tokens

Exchange

With this option you switch tokens with dolars.


Commands:

say !slots
say_team !slots


Requirements:

cstrike


Cvars:

slots_prefix [SLOTS]

Set the prefix

slots_try 100

Set the price for each try

slots_freetry 1

1 - First try free On | 0 - First try free Off


Images:

http://i.imgur.com/kKTlGZE.png


Changelog:

v0.1

First release.

v0.1.1

Visual menu updated.
Tokens updated.
Added Bet features.
Changed calcul formula for win/loose.
Added Multilanguage support.
Added First Try free features
Added cvars


PS: If i had some mistakes about my rip english. Sorry!

ArabicMan
07-27-2015, 08:25
Can you explain more what this plugin do i don't understand anything from description.

tousif
07-27-2015, 09:51
that description sucks :/ explain more please

Jhob94
07-27-2015, 11:09
The description is understandable, the only thing missing is what tokens are. Is it tokens from the plugin by it's own, or cs money?

Let's say it's cs money and you bet 100$
If you get:
999
888
333
You get 400$

If you get:
444
222
125
You get 300$

If you get:
777
412
532
You get 200$

If you get:
142
162
185
You dont receive anything and lose what you bet.

This plugin can actually be fun, seems to be a nice idea. You just should add support for many kind of things, like cs money, ammopacks, etc.

Linkin Hisoka
07-27-2015, 11:31
i still not understand anything x)

Freezo Begin
07-27-2015, 11:43
i still don't understand the point of the plugin. also remove

if(!is_user_connected(iPlayer))
return PLUGIN_HANDLED;

klippy
07-27-2015, 12:43
For those of you who don't understand, here's what the slot machine (https://en.wikipedia.org/wiki/Slot_machine) is.

matrix123
07-27-2015, 13:03
It is like Casino

Syturi0
08-06-2015, 09:33
Damn i had in mind making this 2 weeks ago.

skitaila03
08-15-2015, 08:22
Update
v0.1.1

Visual menu updated.
Tokens updated.
Added Bet features.
Changed calcul formula for win/loose.
Added Multilanguage support.
Added First Try free features
Added cvars

swarmachine
03-09-2016, 10:55
cool plugin.
good for : CS 1.6 4Fun Servers.