PLUGIN - CS2-PlayersBet

Spatiul dedicat dezvoltatorilor. Aici gasesti resurse pentru CounterStrikeSharp, ajutor pentru cod si scripting avansat.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 2389
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

PLUGIN - CS2-PlayersBet

Post by greenie »

CS2-PlayersBet
CSSharp plugin to allow players to bet on the next winning team.

Install
Requires CSSharp and metamod installed on your server
Download the latest release from the releases page
Extract the zip file to your csgo folder
Execute css_plugins list on your server to check the install
You might have to css_plugins load PlayersBet on the first install (or restart the server)
Usage
Type !bet or /bet to invoke the command
Usage is: !bet <ct|t> <all|half|amount>
team must be ct or t amount can be all for all you money, half for half your money or any number between 0 and your current amount of money.

You can not bet if all players of a team are dead.
Infos
Bet earnings are calculated as such:
4 CTs vs 2 Ts you have $5,000 !bet t all You bet $5,000 on the Terrorists, if they win, you win your bet * (4 / 2) = $10,000 You also get back your bet => $5,000 You have $15,000 on the next round.

Known issues:
CSSharp is working on UserMessages, in the meantime, I can not refresh the money displayed in the HUD

CSSharp has an issue causing some event not to be triggered until a hot-reload has been done

Run css_plugins reload PlayerBet to fix the issue

https://github.com/Dliix66/CS2-PlayersB ... master.zip
π‘΄π’‚π’šπ’ƒπ’† 𝒕𝒉𝒆 𝑬𝒂𝒓𝒕𝒉 π’Šπ’” 𝒕𝒉𝒆 𝑯𝒆𝒍𝒍 𝒐𝒇 𝑨𝒏𝒐𝒕𝒉𝒆𝒓 𝑷𝒍𝒂𝒏𝒆𝒕... ☒️
Post Reply

Return to β€œScripting CS2”