Author Topic: How do I allow access to a command?  (Read 6305 times)

0 Members and 1 Guest are viewing this topic.

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
How do I allow access to a command?
« on: September 19, 2009, 12:06:36 PM »
More specifically the !votekick one. I have many minges on my server while i'm not there, and I would like to give a little power to the people.  ;D

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How do I allow access to a command?
« Reply #1 on: September 19, 2009, 01:25:01 PM »
ulx groupallow user "ulx votekick"
Experiencing God's grace one day at a time.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: How do I allow access to a command?
« Reply #2 on: September 19, 2009, 01:28:33 PM »
ULX Votekick may require an admin approval (or maybe that's just ULX Voteban). However, it really isn't written as a public votekick system (sorry Megiddo).

I'd suggest Luk0r's, but that isn't functioning 100% anymore.

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
Re: How do I allow access to a command?
« Reply #3 on: September 19, 2009, 01:35:19 PM »
Yeah, whenever someone types !votekick "player", it says he doesn't have access to that command after  typing in what you said, megiddo
« Last Edit: September 19, 2009, 01:40:28 PM by EggNoggin »

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: How do I allow access to a command?
« Reply #4 on: September 19, 2009, 01:57:46 PM »
Is he in the user group? Did it say the user group was invalid? Upload your groups.txt!

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
Re: How do I allow access to a command?
« Reply #5 on: September 19, 2009, 02:22:46 PM »
This is my groups.txt:
Code: [Select]
"female"
{
"allow"
{
}
}
"superadmin"
{
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx explode"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx luarun"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx renamegroup"
"ulx userallow"
"ulx userdeny"
"xgui_changeserversettings"
}
"inherit_from" "admin"
}
"admin"
{
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx adminmenu"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx clientmenu"
"ulx cloak"
"ulx csay"
"ulx exec"
"ulx freeze"
"ulx gag"
"ulx ghost"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx maul"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx send"
"ulx showmotd"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx toolallow"
"ulx toolallowuser"
"ulx tooldeny"
"ulx tooldenyoverride"
"ulx tooldenyuser"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx unghost"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx votemap2"
"ulx welcomemessage"
"ulx whip"
}
"inherit_from" "operator"
}
"user"
{
"allow"
{
"ulx"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx addgimpsay"
"ulx asay"
"ulx debuginfo"
"ulx help"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapaddmap"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx who"
"ulx_cvar"
"ulx_getbans"
"ulx_getgamemodes"
"ulx_valueupdate"
"urequest"
"urequest delete"
"urequest help"
"urequest make"
"urequest makep"
"urequest view"
"urestrict"
"urestrict adminexclude"
"urestrict allow"
"urestrict apply"
"urestrict deny"
"urestrict exclude"
"urestrict make"
"urestrict modify"
"urestrict remove"
"urestrict toggle"
"urestrict tool"
"urestrict toolexclude"
"xgui"
}
}
"monkey"
{
"allow"
{
}
"inherit_from" "user"
}
"operator"
{
"allow"
{
"ulx seeasay"
}
"inherit_from" "user"
}

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How do I allow access to a command?
« Reply #6 on: September 19, 2009, 02:39:41 PM »
It wasn't written explicitly with the public using it in mind, but it works fine that way. The only thing you'd want on top of what you have already for public usage is veto and cooldown, but they're not big issues.

@EggNoggin, did you use the command like I said? Did it say it was successful?
Experiencing God's grace one day at a time.

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
Re: How do I allow access to a command?
« Reply #7 on: September 19, 2009, 02:44:45 PM »
No, it didnt return anything. I typed it in exactly like you said. And it still says that they don't have access (I'm testing it by having them type the chat command !votekick)
« Last Edit: September 19, 2009, 02:48:57 PM by EggNoggin »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How do I allow access to a command?
« Reply #8 on: September 19, 2009, 03:07:41 PM »
Was there an error in console when you ran that command? It should always say *something*
Experiencing God's grace one day at a time.

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
Re: How do I allow access to a command?
« Reply #9 on: September 19, 2009, 03:09:27 PM »
When I type it in using the server console or rcon, I get nothing returned. But when I use the in-game console, i get "Invalid group".
« Last Edit: September 19, 2009, 03:15:31 PM by EggNoggin »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How do I allow access to a command?
« Reply #10 on: September 19, 2009, 03:49:24 PM »
Copy and paste *exactly* what you're inputting in the console and what it's saying.
Experiencing God's grace one day at a time.

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
Re: How do I allow access to a command?
« Reply #11 on: September 20, 2009, 02:53:10 PM »
ulx rcon ulx groupallow user "ulx votekick"
RETURNS: (SILENT)(SUPERADMIN) EggNoggin ran rcon command: ulx groupallow user "ulx votekick"

just fyi, I can allow other groups than user, like my "Monkey" group.

ulx rcon ulx groupallow monkey "ulx votekick"
RETURNS:(SILENT)(SUPERADMIN) EggNoggin ran rcon command: ulx groupallow monkey "ulx votekick"
(SERVER) (Console) granted group "Monkey" access to "ulx votekick"

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How do I allow access to a command?
« Reply #12 on: September 20, 2009, 03:23:27 PM »
Don't do 'ulx rcon', just run the command. Check console for errors.
Experiencing God's grace one day at a time.

Offline EggNoggin

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -6
Re: How do I allow access to a command?
« Reply #13 on: September 20, 2009, 04:05:41 PM »
it doesnt say anything after i type it in. the ulx groupallow user "ulx votekick" command.