Jump to content

Is there any scripts like this?


ItzYeBoyBen

Recommended Posts

you could do

on right click:
	if player's tool is paper named "VIP RANK":
		remove 1 of player's tool from player's inventory 
		# command to give player rank

 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

command /giveme [<text>] [<player>]:
    permission: op
    permission message: &cNo permissions
    trigger:
        if arg-1 is "vip":
            give arg-2 paper named "&aVIP"


on click:
    if player's tool is paper named "&aVIP":
        execute console command "/lp user %player% parent set vip"
        set name of player's tool to "&aVIP &cUSED"

on click:
    if player's tool is paper named "&aVIP &cUSED":
        send "&cThis vip voucher is already used"
        
        

Link to comment
Share on other sites

command /cv [<text>] [<text>] [<text>]:
    permission: op
    permission message: &cNo Permission
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                set {created::%arg-1%} to true
                set {vprefix::%arg-1%} to colored arg-2
                set {vcommand::%arg-1%} to arg-3
                send "&aCreated %arg-1% with prefix %arg-2%"
        

command /givev [<text>] [<player>]:
    permission: op
    permission message: &cNo Permission.
    trigger:
        if {created::%arg-1%} is true:
            if arg-2 is set:
                give arg-2 paper named "%{vprefix::%arg-1%}%"
                send "&aGave %arg-2% %arg-1%!"

on click:
    if {created::%player's tool%} is true:
        execute console command "/lp user %player% parent set %{vcommand::%player's tool%}%"
        send "&aNow used %{vprefix::%player's tool%}%"
        remove 1 of player's tool from player's inventory 

#How to use this
#do /vc (vname) (the preifx ex. &c&lOWNER V) (group name)
        
        

 

Link to comment
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...