This will allow you to have a custom HUD that only certain players have access to. Commands are as follows:
/hud <new hud> Set the new HUD. For a list of tags or a new command for list of tags, reply and request it below.
/hudgo This is an automatic command that does NOT need to be manually used but still has protection so only the SAME certain users can use it. It loads the previous people so you don't need the write the usernames again.
/stophud Once again this command only works for the certain users that will be loaded so you don't need to type them out again. This just stops the cycle of the HUD so there will be no HUD for anyone.
So here is the code for all three commands. it's not tested so if there's any bugs please point them out.
CODE
/hud <new hud> Set the new HUD. For a list of tags or a new command for list of tags, reply and request it below.
/hudgo This is an automatic command that does NOT need to be manually used but still has protection so only the SAME certain users can use it. It loads the previous people so you don't need the write the usernames again.
/stophud Once again this command only works for the certain users that will be loaded so you don't need to type them out again. This just stops the cycle of the HUD so there will be no HUD for anyone.
So here is the code for all three commands. it's not tested so if there's any bugs please point them out.
CODE
Code:
cmd create hud Edit the HUD, OP's only.
cmd add hud let %allowed% = array(\"Person1\",\"Person2\")
cmd add hud save %allowed%
cmd add hud if %p% in %allowed% then goto 5
cmd add hud message %p% §l§cELITE§e-§6PVP §r§a§l> §r§fYou lack permissions to use this command, please contact SuperNoob if you feel you need access to this command.
cmd add hud exit
cmd add hud /cmd kill hudgo
cmd add hud let %hud% = join(%args%[1+], \" \")
cmd add hud save %hud%
cmd add hud /hudgo
cmd add hud message %p% §l§cELITE§e-§6PVP §r§a§l> §r§fYou edited the server's HUD!
cmd add hud exit
cmd create hudgo Go for HUD
cmd add hudgo load %allowed%
cmd add hudgo load %hud%
cmd add hudgo if %p% in %allowed then goto 5
cmd add hudgo message %p% §l§cELITE§e-§6PVP §r§a§l> §r§fYou lack permissions to use this command, please contact SuperNoob if you feel you need access to this command.
cmd add hudgo exit
cmd add hudgo let %online% = onlineplayers()
cmd add hudgo popup %online% %hud%
cmd add hudgo sleep 1
cmd add hudgo goto 6
cmd create stophud Stop the HUD
cmd add stophud load %allowed%
cmd add stophud if %p% in %allowed% then goto 5
cmd add stophud message %p% §l§cELITE§e-§6PVP §r§a§l> §r§fYou lack permissions to use this command, please contact SuperNoob if you feel you need access to this command.
cmd add stophud exit
cmd add stophud kill hudgo
cmd add stophud message %p% §l§cELITE§e-§6PVP §r§a§l> §r§fYou stopped the HUD for everybody.
cmd add stophud exit