Posts: 2,097
Threads: 176
Likes Received: 2,007 in 736 posts
Likes Given: 954
Joined: Aug 2014
Reputation:
59
07-23-2019, 04:11 PM
(This post was last modified: 09-01-2022, 01:08 AM by Fearless Community. Edited 2 times in total.
Edit Reason: Fixed Encoding
)
Big +Support
Really easy to do too, something like this?
Spoiler :
Code: -- Command to print a random playing card
cityrp.command.add("card", "b", 0, function(ply)
local suits = {"Spades", "Clubs", "Hearts", "Diamonds"}
local value = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}
local card = table.Random(value) .. "of " .. table.Random(suits)
-- output to players
end, "Commands", "<none>", "Picks a random card")
(basing it off Snowred's comment on https://www.fearlessrp.net/showthread.ph...light=code)
Check second post, bit better done with /deck command for 1-6 decks.
Regards,
Connnnnnnn
Consider giving me a rep point here.
|