07-25-2019, 07:54 PM (This post was last modified: 09-01-2022, 01:08 AM by Fearless Community.
Edit Reason: Fixed Encoding
)
(07-25-2019, 07:22 PM)Lewwings Wrote:
(07-24-2019, 03:02 AM)Conn Wrote: 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