Recent Posts

Pages: [1] 2 3 ... 10
1
Developers Corner / Re: Default access of opposite command
« Last post by iViscosity on Today at 05:46:31 PM »
Huh... that actually makes a lot of sense. I never would've thought of that.
2
Developers Corner / Re: Default access of opposite command
« Last post by JamminR on Today at 05:40:32 PM »
It wouldn't hurt to save code though.

Keep your join channel code of course.
Then just set a command that calls the function for users, then one that calls the same function with is_force like you wanted.

example logic

function my_channeljoin (calling, target, forced)
    if forced
        blah
    else
        blah
    end
end

local joinchannel = ulx command (blah, "svc joinchannel", my_channeljoin)
joinchannel params = forced/false
blah group users

local forcejoin = ulx command (blah, "svc forcechannel", my_channeljoin)
joinchannel params = forced/true
blah group operators

Your join code couldn't be called directly by players, but the commands for it could depending on group.
3
Releases / MOVED: Some TTT Addons & Server Addons!
« Last post by JamminR on Today at 05:33:35 PM »
This topic has been moved to Off-Topic.

https://forums.ulyssesmod.net/index.php?topic=10333.0

Releases forum area is only for code you've written, or have exclusive written permission to post code you've modified.
As this is a helpful post more along the lines of 'here's what I use, hope you find it helpful', we're moving it to Off-Topic.
4
Hate to answer your question with a question, but, answering this question answers yours.
What files did you edit?

Additionally, I just searched ULib and ULX, we only use the word metadata in one XGUI file in client ULX.
However, without knowing the file you edited, that very well could just be misreading info from another file you may have corrupted.
Shutdown server, then restore the file(s) you edited.
Restart server.
From there, if it doesn't fix it, shutdown server and restore /data/ulib/bans.txt (as it might be corrupted by whatever changes you made.

5
Probably something in your settings really. Did you change any settings with adverts or OOC?
6
I just started making a darkrp server and this is my first time using lua. And on every server that I've been on. when you do /advert or // it has a prefix.
          example -
          what it should be
typing - /advert mug drop 500 or die
look- [Advert] Cars0nn: mug drop 500 or die (in yellow text)
          what it is on my server
typing  /advert mug drop 1000 or die
look- Cars0nn: mug drop 1000 or die

I've already solved the billboard thing (with 2.7 fix). just no prefix. Help!
7
Developers Corner / Re: Default access of opposite command
« Last post by iViscosity on Today at 02:46:56 PM »
Right I don't think they're opposites but I wanted them to do the same function. I'll most likely just make another command.
8
Off-Topic / Some TTT Addons & Server Addons!
« Last post by Gr0m3r on Today at 01:51:06 PM »
This addons are not made by me!
I just start a new topic to help people who wants to create their own TTT server and they looking for addons!
Here are TTT addons, that i'm using on my server:

TTT Spectator Deatchmatch:
Link: http://steamcommunity.com/sharedfiles/filedetails/?id=404599106
Author: Tommy228 & EGM P4sca1

Killer Notifier
Link: http://steamcommunity.com/sharedfiles/filedetails/?id=167547072
Author: Starfox64
It's showing message on chat, when you die. For example:
You were killed by Gr0m3r, he was Innocent.
You were killed by Gr0m3r, he was Traitor.
You were killed by Gr0m3r, he was Detective.
You were killed by world.
It's also supports colors, so when you were killed by traitor Both nick and role are red.
Innocent -Green,Detective - Blue
I saw that someone was looking for that so here it is!

Player Info/Role Counter
Link: http://steamcommunity.com/sharedfiles/filedetails/?id=649273679
Author: Zaratusa
When round starts, it's showing on chat number of Traitors,Innocents,Detectives & Shows when Detective/traitor/Inno switch to spectators or leave game.

TTT Advanced End Round Music
Link: https://forums.ulyssesmod.net/index.php/topic,6917.0.html
Author: Cobalt

TTT Round End - Slow Motion
Link: http://steamcommunity.com/sharedfiles/filedetails/?id=686457995&searchtext=end+round+slow
Author: Zaratusa
End Round Slow Motion for about 10-15 seconds.

TTT Drowning Indicator
Link: http://steamcommunity.com/sharedfiles/filedetails/?id=481440358&searchtext=drowning
Author: GMN | Moe

Now you will know, when you will be close to drown!
Information: If you are using default HUD it will be at wrong position, but don't worry. Open F1 go to Drowning Indicator or something Like that, after it set X,Y to what you want, and save settings. If you have troubles with that write me, i will help you!

Voice Vizualizer
Link: https://facepunch.com/showthread.php?t=1301251
Author: freakyy

^^In that link is instruction how to set up it for TTT.

TTT Damagelogs +RDM Manager
Link: https://github.com/Tommy228/TTTDamagelogs
Author: Tommy228


Map Voting
Link: http://steamcommunity.com/sharedfiles/filedetails/?id=151583504
Author: MiRe
By default it works with TTT and Non-custom deathrun, if you want to using it on other gamemode you have to edit it yourself.

TTT Scoreboard ranks
Link: https://forums.ulyssesmod.net/index.php?topic=8607.0
Author: Decicius



Okey i decided to not writing here all weapons&maps, because it's too much of them.
So here you have Maps&Weapons: (Maps, Weapons for T,D and Innocents), also playermodels for Pointshop (Groot, don't have a ragdoll, so body didn't appear)

Link: http://steamcommunity.com/sharedfiles/filedetails/?id=882254530

And here you have non-TTT server addons:

ULX&ULiB - But i guess everyone know's where to download it :P
Utime
Link: https://forums.ulyssesmod.net/index.php/topic,3039.0.html
Author: Megiddo
If because of addons i will write below, you have 2 windows of Utime type in console utime_enable 0

Autopromote
Link: https://forums.ulyssesmod.net/index.php/topic,6791.0.html
Author: Bite that Apple
Really helpfull tool, for example you can set up so:
Member rank will be given automaticlly after 5 Hours

Connect/Disconnect Message
Link: https://forums.ulyssesmod.net/index.php/topic,6036
Author: Bite That Apple
Shows in chat when player join or leave the server.
And for admins also showing their Steamid.

Chat tags

Link: https://forums.ulyssesmod.net/index.php/topic,6196
Author: Bite That Apple

Simply tags for chat, something like that:

Owner | Gr0m3r: Hello
VIP | Gr0m3r: Hi

Easy to edit name&colors.

Tee Load
Link: https://www.gmodstore.com/scripts/view/3282
Author: tasid
Really nice loading screen with admin panel.

LuneraLITE MOTD System
Link: https://steamcommunity.com/sharedfiles/filedetails/?id=560482025
Author: Richard

Simply download it and covert by Gmad converter after it everything is easy to config.
Config file: LuneraLITE MOTD System->lua->lunera->sh->sh_config.lua

Note: If after uploading it to addons folder it won't work, then change main folder name from "LuneraLITE MOTD System" to "lunera".
And disable standard Motd in ULX, because if not, you will be seeing 2 windows with 2 diffrent's MOTD.

And here some, custom commands for ULX:

Respawn command

Code: Lua
  1. local CATEGORY_NAME = "MyULX Stuff"
  2.  
  3. function ulx.respawn(calling_ply, target_ply)
  4.         if not target_ply:Alive()then
  5.                         target_ply:Spawn()
  6.                         ulx.fancyLogAdmin ( calling_ply, true, "#a respawned #t")
  7.                 end    
  8.         end    
  9.        
  10.         local respawn = ulx.command ( CATEGORY_NAME, "ulx respawn", ulx.respawn "!respawn", true)
  11.         respawn:addParam{type=Ulib.cmds.PlayerArg}
  12. respawn:defaultAcess( Ulib.ACESS_ADMIN)
  13. respawn:help ("Respawn a Player")
  14.  

Thirdperson command

Code: Lua
  1. --Thirdperson for ULX working 16 Aug 2014
  2. if ( CLIENT ) then
  3.  
  4. local on = false -- default off
  5.  
  6. local function toggle()
  7.  
  8.         on = !on
  9.  
  10.         if on == true then
  11.  
  12.                 print( 'enabled' )
  13.                
  14.                 LocalPlayer():PrintMessage( HUD_PRINTTALK, "Third person mode enabled." )
  15.  
  16.         else
  17.  
  18.                 print( 'disabled')
  19.                
  20.                 LocalPlayer():PrintMessage( HUD_PRINTTALK, "Third person mode disabled." )
  21.  
  22.         end
  23.  
  24. end
  25.  
  26.  
  27. hook.Add( "ShouldDrawLocalPlayer", "ThirdPersonDrawPlayer", function()
  28.  
  29.         if on and LocalPlayer():Alive() then
  30.  
  31.                 return true
  32.  
  33.         end
  34.  
  35. end )
  36.  
  37. hook.Add( "CalcView", "ThirdPersonView", function( ply, pos, angles, fov )
  38.  
  39.         if on and ply:Alive() then
  40.  
  41.                 local view = {}
  42.                 view.origin = pos - ( angles:Forward() * 70 ) + ( angles:Right() * 20 ) + ( angles:Up() * 5 )
  43.                 --view.origin = pos - ( angles:Forward() * 70 )
  44.                 view.angles = ply:EyeAngles() + Angle( 1, 1, 0 )
  45.                 view.fov = fov
  46.  
  47.                 return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  48.  
  49.         end
  50.  
  51. end )
  52.  
  53. concommand.Add( "thirdperson_toggle", toggle )
  54.  

^^^^ Commands goes to: garrysmod->addons->ulx->lua->ulx->modules->sh
vvvvvv

Command that open link in tab:

Examples:

Code: Lua
  1. CATEGORY_NAME = "Link"
  2.  
  3. // Event
  4. function ulx.event(ply)
  5.     ply:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/tttshadowgaming/discussions/0/135514231766345535/")]])
  6. end
  7. local event = ulx.command( CATEGORY_NAME, "ulx event", ulx.event, "!event" )
  8. event:defaultAccess( ULib.ACCESS_ALL )
  9. event:help( "Information about events!" )
  10.  
  11.  
  12. // Update
  13. function ulx.update(ply)
  14.     ply:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/tttshadowgaming/discussions/0/1319962417039905206/")]])
  15. end
  16. local update = ulx.command( CATEGORY_NAME, "ulx update", ulx.update, "!update" )
  17. update:defaultAccess( ULib.ACCESS_ALL )
  18. update:help( "Information about server updates!" )
  19.  
  20.  
Code: Lua
  1. CATEGORY_NAME = "Category Name"
  2.  
  3. // Command name <--- Just inormation.
  4. function ulx.cname(ply) <---- Command Name
  5.     ply:SendLua([[gui.OpenURL("Your Link Here")]])
  6. end
  7. local update = ulx.cname( CATEGORY_NAME, "ulx cname", ulx.cname, "!cname" )
  8. cname:defaultAccess( ULib.ACCESS_ALL ) <---- Who has access to this command.
  9. cname:help( "Description of the command here!" )
  10.  
  11. In every place where i put "cname" you have to replace with your Command Name for exmaple: event,update,website....
  12.  
  13.  


Hope that will help you. And like i write early here:
http://steamcommunity.com/sharedfiles/filedetails/?id=882254530
is my collection of addons for my TTT Server.
(Maps,Addons,Playermodels,Weapons....)

Probably i forget about something, but that's all for now!
Have a nice day!










9
Developers Corner / Re: Default access of opposite command
« Last post by JamminR on Today at 01:31:46 PM »
There is no default way in ULib's command setup to do what you ask.
It's usually presumed that if you have access to do a command, you also have access to undo a command.

Two likely option, other than your 'make a different function that references this one with is_force' would be to, within the 'else' statement, check for which groups (operator) you only want to be allowed to do it, or, and I'm really not sure on this one so you'd have to test, deny access to "svc force" for the user group.
I'd really question my latter deny suggestion would work though - I don't think ULib registers the opposite as a command that can be denied like it does the ulx.command line code.

Force and joinchannel are, imo, two totally different commands. You just happen to be combining them.
joining a channel and forcing someone to join a channel are not opposites, imo.
10
My ULib/ULX versions (run "ulx version" in console):
ULib v2.61d
ULX v3.71

Game mode(s) I am having this problem on: DarkRP

Lua errors shown in console, if any:
Code: [Select]
None

Hello, I have recently changed the ban message and added some extra text to make it better. Since doing this, the ban list has changed and now there are no names specified, only SteamID's, and all of them say that this ban has no metadata. We do have server backups, so I was wondering what files I would need to replace to fix our ban list and return the names and metadata.

Thanks,
Pages: [1] 2 3 ... 10