Author Topic: Some help again! :)  (Read 2782 times)

0 Members and 1 Guest are viewing this topic.

Offline slowtech

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Some help again! :)
« on: September 12, 2010, 05:03:20 AM »
Hello.
I thought of making something like this:
Code: [Select]
  if "ulx votekick" then ply:GetUserGroup () "respected" then
   ulx.logUserAct( ply, target, "Respected user ply:GetNick() started a votekick against #T.\
      end
end"


So instead of "(ADMIN) Slowtech started a votekick against Megiddo"
Then it shows up like "(RESPECTED) Slowtech started a votekick against Megiddo".

If you understand, just wanted to know if this should work?
« Last Edit: September 12, 2010, 05:16:16 AM by slowtech »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Some help again! :)
« Reply #1 on: September 12, 2010, 09:10:54 AM »
Sorry, I don't understand.
Rather than showing Admin, you want it to show the group level of the person that started the votekick?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline slowtech

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Some help again! :)
« Reply #2 on: September 12, 2010, 01:32:55 PM »
Yes.
I could give a example:

You give a person admin.
Then when he does something, like !votekick jammnir, then it would come up in the chat "(ADMIN) person Started a votekick against Jammnir"

But i would like to make people that have the usergroup Respected to have that in chat as well.
Like when they do something, then it shows up like:

"(RESPECTED) person2 Started a votekick against Jammnir"

Hope i helped you to understand.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Some help again! :)
« Reply #3 on: September 12, 2010, 02:17:05 PM »
I think this was added at one time.
Are you using SVN?
It's possible it was removed from svn for <some other technical reason>.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline slowtech

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Some help again! :)
« Reply #4 on: September 13, 2010, 08:32:31 AM »
Yes, i am using svn.
I don't think that it was ever added to ulx?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Some help again! :)
« Reply #5 on: September 13, 2010, 09:20:33 AM »
It was removed because the colors show the group now.
Experiencing God's grace one day at a time.

Offline slowtech

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Some help again! :)
« Reply #6 on: September 13, 2010, 01:18:42 PM »
So, could anyone help me to get this working? :)
Or tell me if it should work

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Some help again! :)
« Reply #7 on: September 13, 2010, 01:39:16 PM »
What code have you tried modifying so far? How has it worked for you? What in particular about the code modification do you need help with?
Experiencing God's grace one day at a time.