I'm developing a scoreboard I am thinking of releasing on coderhire and I am implementing admin buttons on it ( such as go to player and such) but I'm a little stuck as it what I should be doing. Should I make them ULX buttons but make the user able to disable them? Or should I make the buttons and add a config file for the commands to each button .( like all the buttons have a editable command in the config file kind of a thing)
Any ideas?
[editline]8th January 2014[/editline]
Also, should it be using IsAdmin() to hide the buttons to players? I'd like to do it for moderators too but I can't make it work across multiple admin mods.
Make a config, so users can add own buttons, change commands, hide buttons depending on usergroup.
You can make hide button check using a function, and by default return if IsAdmin true else false.
I believe ULX is the most popular admin mod out there.
I personally think a config file is a good idea. What you could do is primarily make it for ULX, but give support for other admin mods if people request it, as well. I know 99% of users stick with the same admin mod, but there are a couple of us who use other stuff and it's nice to be recognized.
Ulx is the most popular admin mod and it would have a gui people are comfortable with
Evolve is comfortable too.
[QUOTE=ExtReMLapin;43461762]Evolve is comfortable too.[/QUOTE]
Isn't it outdated and never updated to GM13?
[QUOTE=Chizbang;43460830]Also, should it be using IsAdmin() to hide the buttons to players? I'd like to do it for moderators too but I can't make it work across multiple admin mods.[/QUOTE]
If you're going to make it ULX compatable, I would recommend actually checking for Ulx access to the commands and add the most common commands as buttons/dropdown list. I would also just check to make sure Ulx is actually running, and if no admin mod can be found just enable the generic ban/kick functions. Maybe even making it modular so that you can easily load a file and add commands in from that file.
[QUOTE=Robotboy655;43461781]Isn't it outdated and never updated to GM13?[/QUOTE]
[URL="https://github.com/Xandaros/evolve"]Nope[/URL]
[QUOTE=Handsome Matt;43462533]ULX is the most popular and the biggest piece of garbage ever, developing to work with it is just a huge pain in the ass all the time.[/QUOTE]
Don't forget releasing plugins on their forum, it must be named similarly to their system (AWarn / URS / UPPL / UPS) otherwise you get Megiddo or another one of their team bitching about consistency in releases...
[editline]8th January 2014[/editline]
In answer to the original question, make the scoreboard run appropriate commands for the three most popular mods so it works "out of the box":
ulx goto
ev goto
exsto goto
For the buttons, yes, using a config file would be best. Just remember that Evolve doesn't use ply:GetUsergroup() to determine ranks, I think the function to get someone's evolve rank is ply:EV_GetRank().
[QUOTE=Robotboy655;43461781]Isn't it outdated and never updated to GM13?[/QUOTE]
Nah, it's evolved to the times.
Sorry, you need to Log In to post a reply to this thread.