Raised This Month: $32 Target: $400
 8% 

CS1.6Bet.com


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-14-2017 , 14:18   CS1.6Bet.com
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (CS1.6Bet.com.sma - 1135 views - 45.8 KB)
File Type: zip coin.zip (23.6 KB, 239 views)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 10-07-2017 at 19:47.
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-15-2017 , 00:41   Re: CS1.6Bet.com
Reply With Quote #2

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.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 06-15-2017 , 02:55   Re: CS1.6Bet.com
Reply With Quote #3

looks good, but
Spoiler
__________________
retired chump

Last edited by DjSoftero; 06-15-2017 at 02:55.
DjSoftero is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-15-2017 , 15:13   Re: CS1.6Bet.com
Reply With Quote #4

No, it is a typo. I'll change this, thank you.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-16-2017 , 21:23   Re: CS1.6Bet.com
Reply With Quote #5

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.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
PawnerBros
Junior Member
Join Date: Aug 2016
Old 06-17-2017 , 18:19   Re: CS1.6Bet.com
Reply With Quote #6

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 )
PawnerBros is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-17-2017 , 21:47   Re: CS1.6Bet.com
Reply With Quote #7

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.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-17-2017 at 21:47.
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-17-2017 , 23:54   Re: CS1.6Bet.com
Reply With Quote #8

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.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-18-2017 at 00:07.
EFFx is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 06-18-2017 , 03:51   Re: CS1.6Bet.com
Reply With Quote #9

Quote:
Originally Posted by PawnerBros View Post
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 )
Would you mind sharing it?
__________________
Airkish is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-18-2017 , 06:02   Re: CS1.6Bet.com
Reply With Quote #10

Quote:
Originally Posted by EFFx View Post
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.
__________________
HamletEagle is online now
Reply


Thread Tools
Display Modes

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 09:38.


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