Jump to content

Recommended Posts

This should work... You can either use '/rgive (player)' to give it to a specific player or just '/rgive' to give it to yourself.

command /rgive [<player>]:
	trigger:
		if arg-1 is not set:
			give player a random item out of all items
		else:
			give arg-1 a random item out of all items

Hope this helped!

  • Like 1

Currently working on a vs code extension for editing server files

  • yes jeelzzz, i do support this vsc code extension - Reassembly
Link to post
Share on other sites
On 6/2/2020 at 7:41 AM, jeelzzz said:

This should work... You can either use '/rgive (player)' to give it to a specific player or just '/rgive' to give it to yourself.


command /rgive [<player>]:
	trigger:
		if arg-1 is not set:
			give player a random item out of all items
		else:
			give arg-1 a random item out of all items

Hope this helped!

You can also further simplify the command
 

command rgive <player=player>:
	trigger:
		give arg-1 a random item out of all items

 

  • Like 1

First Joined: Mid-Late 2015
VIP: January 2020
Jr.Mod: 1st April 2020

Info:
~ Skript Developer
~ Discord: @nicholxs#3557
~ Previous names: Deterno, iHaveSkills, Retrical

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...