RUST Simple Gambling v1.4.0

No permission to download
You can download a maximum of 0 files within 24 hours

Permissions​

This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.
  • simplegambling.allowed -- Allows players to gamble
  • simplegambling.admin -- Allows Admins to create/finish/resetpot gambles, etc

Chat Commands​

Players​

  • `/gamble -- Show current gambles
  • /gamble current -- Show current gambles
  • /gamble play <gamble name> <number> -- Choose the name of the Gamble and the number you want to bet on. To use this command you need to have the item that the Gamble requires

Admin​

  • /gamble -- Show help
  • /gamble set -- Show help on how to create a gamble
  • /gamble finish -- Show help on how to finish a gamble and randomly choose a winner
  • /gamble current -- Show current gambles
  • /gamble config -- Change the config options (read more below)
  • /gamble resetpot -- Resets current gamble pot

How It Works​

Admins can create gambles with the "/gamble set" command, here is an example on how to create a gamble:

/gamble set SulfurGamble sulfur 200 10

In this example the admin creates a gamble called SulfurGamble, to participate you need to bet 200 sulfur in numbers that range from 1 to 10.

To place your bet in the number 7 you have to type

/gamble play SulfurGamble 7

This will automatically remove 200 sulfur from your inventory and wont let you bet again on this same gamble (you can bet on a future one)

To finish this gamble the admin will have to use the finish command:

/gamble finish SulfurGamble

A random number will be chosen and the gamble is removed.

If a player won a gamble it will have to type /gamble reward to redeem the loot. If multiple players won the loot will be shared between them

Configuration​

The settings and options can be configured in the SimpleGambling file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.
Code:
Please, Log in or Register to view codes content!
"showWinners" enabling this option will display the name of the winners when a gamble finishes.

"PreservePot" enabling this option will let the pot(betted items) be part of the next gamble, players that already betted will be able to bet again.

TODO​

  • Add Server Rewards Support
  • Add Economics Support
  • Add UI option
  • Add HumanNPC Support.
  • Add A Automated Gamble time setting option
Author
Box2
Downloads
0
Views
29
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource

Similar resources

XF 1  LiquidPro Simple Forms 2.1.9g GP100.00
Создание форм для тем
0.00 star(s) 0 ratings
Downloads
0
Updated
Обтекание картинки текстом.
0.00 star(s) 0 ratings
Downloads
0
Updated
0.00 star(s) 0 ratings
Downloads
1
Updated
Добавление админов/vip через web интерфейс
0.00 star(s) 0 ratings
Downloads
0
Updated
SourceMod CS: S  Simple adverts 1.0 Rework GP10.00
Обновленный и восстановленный из пепла adverts by dr.api
0.00 star(s) 0 ratings
Downloads
0
Updated