[Old Clipstone] Bet Against The Server
-
Bet command:
I ripped this from my old clipstone servers gsc file, you'll need to make a couple changes adding a dvar for 'SV_AllowChatBet'Makes a bet using the randomint generator which just generates int numbers at random and gives the user x 2 amount that they bet or all of their money if they did bet all!
https://github.com/WeedLikeTooSmoke/PlutoniumAssetRepository/blob/main/bet/bet.gsc
-
Video of the script:
-
im fairly new to this but where and how do i set the dvar for "sv_allowchatbet"
-
You can do so in your config file, Normally called dedicated_zm.cfg or for MP dedicated.cfg
-
yeah i tried to do that but i ran into issue, ill try again and lyk the error it gives me it gives me a script error (and yes i did compile the script)
-
i get this error when trying to run it -
Search for this line:
if (isInteger(args[1]) && player.score >= int(args[1]))
change to this:
if (isInt(args[1]) && player.score >= int(args[1]))
-
ah that fixed it, thank you
-
also how does the slots one work is it just the pokies on the map or same thing you type in chat cause i get another error with that one
-
for the one on the github its staminup machines but can easily be changed to a command instead
just rip the code from the machine and put it into a function and run whenever the command is used
-
ah alr i run into an issue when trying to use it tho i get another error when trying to load the gsc
-
IH8Gays05 I cant really give you any support from that reply, I don't use any of these anymore but if you would like to post the code here id be able to give you a little more input on it!
-
yeah alr its just the slots machine gsc file