Ulysses

General => Developers Corner => Topic started by: slowtech on September 12, 2010, 05:03:20 AM

Title: Some help again! :)
Post by: slowtech 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?
Title: Re: Some help again! :)
Post by: JamminR 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?
Title: Re: Some help again! :)
Post by: slowtech 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.
Title: Re: Some help again! :)
Post by: JamminR 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>.
Title: Re: Some help again! :)
Post by: slowtech on September 13, 2010, 08:32:31 AM
Yes, i am using svn.
I don't think that it was ever added to ulx?
Title: Re: Some help again! :)
Post by: Megiddo on September 13, 2010, 09:20:33 AM
It was removed because the colors show the group now.
Title: Re: Some help again! :)
Post by: slowtech on September 13, 2010, 01:18:42 PM
So, could anyone help me to get this working? :)
Or tell me if it should work
Title: Re: Some help again! :)
Post by: Megiddo 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?