AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   CS1.6Bet.com (https://forums.alliedmods.net/showthread.php?t=298512)

EFFx 06-14-2017 14:18

CS1.6Bet.com
 
2 Attachment(s)
CS1.6BET.com v1.7


Plugin release: 06/14/2017
Last plugin update: 10/04/2017

- Description
This one is a fun plugin that contains Roulette, Dice, Crash, Jackpot and Coinflip. For people that don't know how it works, i'll explain:

Code:

1. Roulette
- The roulette, you'll double your coins if the random number be more than or equal to 50. If it's less than 50 you'll lose except when it's 0.
If it's 0, your money will be multiplicated with 14. I don't know if money is the best reward, I might change this to another thing, like XP.
2. Dice
- The dice is basically the same as roulette. But there's no 0 to win. You'll only win if the number is more than or equal to 50, your money
will be multiplicated by 2.
3. Crash
- The crash, every 0.2  seconds a random number between 1 and 100 will be executed. If it's more than 7, your money that you've betted will
 be multiplicated every 0.2 seconds by +0.1. If it's less than 10, the game will crash and your money will be multiplicated depending of how
 much time the game was running.
4. Jackpot
Players will bet, when there's 15 players (value controlled by a cvar), the plugin will pick a random gambler and set to him all the money
 that was bet!
5. Coinflip
You can challenge/be challenged by someone to a coinflip. One player will be tails and the other will be heads.
6. Predictor of the day
- That one has PREDICTOR OF THE DAY, it means who's the player that win the most.
7. Reset
-  When the server's time is 00:00, all player's wins will be reseted.

- Commands
* EVERYONE
say /roulette <betvalue> - To use the roulette
say /dice <betvalue> - To use the dice
say /jackpot - To use the jackpot
say /crash <betvalue> - To use the crash
say /coinflip - To use the coinflip
say /betstatus <me|targetname> - show player's bet status
say /topbets - Show the best gamblers in a top15
say /dailywheel - To use the daily wheel

* ADMINS
Console command: amx_allow_daily <player's name or #userid> - To the player be able to use the daily wheel
Console command: amx_reset_data - Reset all nvault data

- Cvars
Code:

bet_minbets_to_daily - Min bets that the player need to use the daily wheel
bet_roulette_multiplier - How many times the money will be multiplicated if you win on roulette when it's more than or equal to 50 but is not 0.
bet_dice_multiplier - How many times the money will be multiplicated if you win on dices.
bet_roulette - Want you the roulette game on? Turn it 1, if not, 0
bet_dice - Want you the dice game on? Turn it 1, if not 0
bet_crash - Want you the crash game on? Turn it 1, if not 0
bet_jackpot - Want you the jackpot game on? Turn it 1, if not 0
bet_jp_minplayers_to_roll - Min players to roll the jackpot
bet_jp_minbet - Min bet on jackpot
bet_jp_maxbet - Max bet on jackpot
bet_roll_type - Roll type
bet_roll_time_seconds - Time to roll in seconds

- CREDITS
Natsheh for the jackpot roll system and the coinflip game

- Change Log
Spoiler

EFFx 06-15-2017 00:41

Re: CS1.6Bet.com
 
Released the version 1.1:

ºCode edited:
. The predictor will be only on roulette game.
. Fixed the MAX_PLAYERS define.
. Added 1 instead of 0 on random_num() at cmdDice()
. Added player's status - /betstatus me for show your status or /betstatus <target name>.
. Fixed the PREDICTOR feature.

DjSoftero 06-15-2017 02:55

Re: CS1.6Bet.com
 
looks good, but
Spoiler

EFFx 06-15-2017 15:13

Re: CS1.6Bet.com
 
No, it is a typo. I'll change this, thank you.

EFFx 06-16-2017 21:23

Re: CS1.6Bet.com
 
Released the version 1.2:

ºCode edited:
. Added 32 size instead of 7 in szValue string.
. Added top15 gamblers.
. Added daily wheel.
. Added bet limit.
. Added clamp() at all cs_set_user_money() natives.
. Changed time format.
. Added 'bet_roulette_multiplier', 'bet_dice_multiplier' and 'bet_minbets_to_daily' cvars:

- bet_roullete_multiplier - How much your money will be multiplicated if you win on roulette.
- bet_dice_multiplier - How much your money will be multiplicated if you win on dice.
- bet_minbets_to_daily - Min bets value to be able to use the daily wheel.

. Added 'amx_allow_daily' and 'amx_reset_data' console commands for admins that have ADMIN_IMMUNITY flag (a on .users.ini)

- amx_allow_daily <player name or authid> - The player will be able to use the daily wheel even if he has less than 1 day.
- amx_reset_data - Reset all nvault data, it means that all the data of g_dPlayerData will be reseted.

. Added Crash game.

PawnerBros 06-17-2017 18:19

Re: CS1.6Bet.com
 
Well, it's okay. But, personally, I did the following:
1) I made a PHP roulette. (It looked like a normal roulette with everything)
2) Linked to MySQL.
3) I did that which she win in PHP roulette will be written to MySQL.
4) I made a plugin, and when you write to the chat: /roulette, you will open the MOTD window, with the roulette.
5) Plugin detected MySQL what you won and added it to you. (It's better because it looks like normal gambling :D)

EFFx 06-17-2017 21:47

Re: CS1.6Bet.com
 
Wow, keep calm ma dude. I appreciate all your suggestions, lets clear all:

1. I'm not good with PHP language, so I don't know how to do that.
2. Secondly, even if I knew, how can I make the AMXX language follow it? I mean, how can I check?
3. MySQL for save little things ain't too good, nvault still fine.

EFFx 06-17-2017 23:54

Re: CS1.6Bet.com
 
Released the version 1.3:

ºCode edited:
. Crash game updated with Auto crashout and cashout options.
. Added 'bet_roulette', 'bet_dice' and 'bet_crash' cvars for turn on/off the game.
. Added ChatColor() stock.
. Some optimizations on the plugin.

Probably the final update until someone gimme a nice suggestion to add/change something.

Airkish 06-18-2017 03:51

Re: CS1.6Bet.com
 
Quote:

Originally Posted by PawnerBros (Post 2529449)
Well, it's okay. But, personally, I did the following:
1) I made a PHP roulette. (It looked like a normal roulette with everything)
2) Linked to MySQL.
3) I did that which she win in PHP roulette will be written to MySQL.
4) I made a plugin, and when you write to the chat: /roulette, you will open the MOTD window, with the roulette.
5) Plugin detected MySQL what you won and added it to you. (It's better because it looks like normal gambling :D)

Would you mind sharing it?

HamletEagle 06-18-2017 06:02

Re: CS1.6Bet.com
 
Quote:

Originally Posted by EFFx (Post 2529494)
Wow, keep calm ma dude. I appreciate all your suggestions, lets clear all:

1. I'm not good with PHP language, so I don't know how to do that.
2. Secondly, even if I knew, how can I make the AMXX language follow it? I mean, how can I check?
3. MySQL for save little things ain't too good, nvault still fine.

You shoul "keep calm", he just gave you an ideea. You link the php script and the plugin with mysql. He did jot tell you to save stuff with mysql.


All times are GMT -4. The time now is 00:13.

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