golanu21 Posted December 11, 2013 Share Posted December 11, 2013 hi guys, how i can make a command to give you something random with 1% chance to get a car Link to comment
Driggero Posted December 11, 2013 Share Posted December 11, 2013 addCommandHandler("car", function(player) local randomNumber = math.random(1, 100) if randomNumber == 1 then --give them a car or whatever you like here, remember to give it to the "player" variable outputChatBox("You've won something!", player) end end ) Link to comment
golanu21 Posted December 11, 2013 Author Share Posted December 11, 2013 but, how i make to use that command now, and then the player can use that command again after 1 hour playing on sv FIXED Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now