Jump to content

DRank (DisguiseRank)


SovietPlayah

Recommended Posts

Here's another skript.

Required plugins:

Skript

PermissionsEx

 

 

command /disguiserank <text>:
    permission: disguiserank
    aliases: disguise,drank
    permission message: "&cNo access!"
    trigger:
        if arg-1 is "Owner":
            make console execute command "pex user %player% prefix ""&8[&4Owner&8]&4 "" "
            send "&8You've disguised your rank to &4Owner"
        if arg-1 is "Admin":
            make console execute command "pex user %player% prefix ""&8[&cAdmin&8]&c "" "
            send "&8You've disguised your rank to &cAdmin"
        if arg-1 is "TMod":
            make console execute command "pex user %player% prefix ""&8[&6Trainee-Mod&8]&6  "" "
            send "&8You've disguised your rank to &6Trainee-Mod"
        if arg-1 is "Mod":
            make console execute command "pex user %player% prefix ""&8[&eMod&8]&e "" "
            send "&8You've disguised your rank to &eMod"
        if arg-1 is "Helper":
            make console execute command "pex user %player% prefix ""&8[&3Helper&8]&3 "" "
            send "&8You've disguised your rank to &3Helper"
        if arg-1 is "Developer":
            make console execute command "pex user %player% prefix ""&8[&bDeveloper&8]&b "" "
            send "&8You've disguised your rank to &bDeveloper"
        if arg-1 is "Youtuber":
            make console execute command "pex user %player% prefix ""&8[&cYou&fTube&8]&4 "" "
            send "&8You've disguised your rank to &fY&4T"
        if arg-1 is "Default":
            make console execute command "pex user %player% prefix ""&7 "" "
            send "&8You've disguised your rank to &7Default"
        if arg-1 is "Reset":
            make console execute command "pex user %player% prefix "" "" "
            send "&8You've reset your prefix!"
command /undisguiserank:
    permission: disguiserank
    aliases: undisguise,undrank
    permission message: "&cNo access!"
    trigger:
        make console execute "pex user %player% prefix """" "
        send "&8You've reset your prefix!"

Link to comment
Share on other sites

i suggest at the very least making the conditions else if conditions, as by doing so you won't be running unnecessary code when you've found the main argument. Also, with undisguising, it'd be better to reset their rank back to what they had prior to disguising

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...