ULX

Author Topic: More Sliders ane Menus?  (Read 2843 times)

0 Members and 1 Guest are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
More Sliders ane Menus?
« on: January 08, 2008, 02:11:08 PM »
I was wondering if I could add more Sliders and Options to the admin menu, and add some commands to the Client menu. For the admin menu I want to be able to raise or lower wire limits(ex: sbox_maxwire_thrusters), also for the client I would like to select a user name as normal but have a button to press the add them to anyone of the current groups I have.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: More Sliders ane Menus?
« Reply #1 on: January 08, 2008, 02:59:40 PM »
You sure can! They were designed just for that use. Check the ULX source for example use.
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: More Sliders ane Menus?
« Reply #2 on: January 08, 2008, 06:29:02 PM »
1: Ok, I found out how to edit the admin menu.
2: I don't understand the client menu.
3: Also, I was wondering if it would be possible to make the owner of the jail the person who make it using the ply command. I don't understand lua very well but if I understand correctly the ply applies to the player doing the action himself correct. So, that way the person in jail can't bounce off the walls and own them, because in SPP you can do that then goto SPP-> client remove all props or you can unfreeze it and get out, but if you already own it they can't get out. Just a suggestion.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: More Sliders ane Menus?
« Reply #3 on: January 08, 2008, 06:31:33 PM »
Someone posted a fix to that SPP bug a day or so ago, bet you'll find it if you search.
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: More Sliders ane Menus?
« Reply #4 on: January 08, 2008, 06:37:02 PM »
Wow, that was amazingly fast response, but that was my fix for SPP lol.
But all the fix is, is me removing the ability to own world props, and Touch world props.
Code: [Select]
function SPropProtection.PlayerCanTouch(ply, ent)
if(tonumber(SPropProtection["Config"]["toggle"]) == 0 || ent:GetClass() == "worldspawn") then
return true
Fix=Remove
Code: [Select]
|| ent:GetClass() == "worldspawn"and
Removed this
Code: [Select]
if(!ent:GetNetworkedString("Owner") || ent:GetNetworkedString("Owner") == "" && !ent:IsPlayer()) then
SPropProtection.PlayerMakePropOwner(ply, ent)
SPropProtection.Nofity(ply, "You now own this prop")
return true
end
But if the jail already was owned you wouldn't beable to own it as a prisoner
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly