07-24-2019, 03:02 AM (This post was last modified: 09-01-2022, 01:08 AM by Fearless Community. Edited 6 times in total.
Edit Reason: Fixed Encoding
)
Another possible solution, this time generating a deck with 1-6 packs of cards in. Obviously a bit of a guessing game and I haven't tested the main code (yet) on a sandbox, but it should work I think..
Spoiler :
Code:
local playerCards = {}
-- Command to create a set of 1-8 decks of playing cards
cityrp.command.add("deck", "b", 1, function(ply, arguments)
local decksize = tonumber(arguments[1])
if (!decksize or decksize < 1 or decksize > 8) then
ply:Notify("Please choose a decksize between 1 and 8.", 1)
return