• Print

Author Topic: Looking for certain scripts compatible with Excl's JailBreak 7  (Read 5267 times)

0 Members and 1 Guest are viewing this topic.

Offline Devyn

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
Looking for certain scripts compatible with Excl's JailBreak 7
« on: February 21, 2016, 09:57:56 pm »
If possible, please supply links to both free and paid versions of each (unless you can help me make it from scratch):

Force team swap ULX command (guards, prisoners, spectators)
Respawn ULX command
Report system with ULX command
Configurable damage logs for staff
Configurable MotD frame with multiple tabs

I'm okay with anything from Scriptfodder, Garrysmods, Ulyssesmod, Facepunch, and possibly Github.

Thanks

Offline feldma

  • Newbie
  • *
  • Posts: 47
  • Karma: 5
  • 5696 hours in Gmod and counting!
    • Mega-Strike Network
Re: Looking for certain scripts compatible with Excl's JailBreak 7
« Reply #1 on: February 21, 2016, 11:28:47 pm »
Half of this stuff... you can probably find by searching it up..

Let me quote JamminR from 2014:
Quote
First, I'd recommend searching our RELEASES section of the forum...many commands there, some might work in Jailbreak.
Second, search for keywords in our DEVELOPER'S CORNER of the forum. Many non-release but good code discussions there.
In fact, since this seems to be more a code discussion than a 'where do I find stuff for ULX' topic now, moving to dev corner.

I'm pretty sure I've seen the exact same give and respawn discussions here on the forum before, and am reasonably sure you might find other code examples.

For respawn command, try:
Code: [Select]
function ulx.respawn( target_ply )
 
        if not target_ply:Alive() then
                target_ply:Spawn()
        end
 
ulx.fancyLogAdmin( calling_ply, true, "#A respawned #T" )
end
 
local respawn = ulx.command( "Fun", "ulx respawn", ulx.respawn, "!respawn", true )
respawn:addParam{ type=ULib.cmds.PlayersArg }
respawn:defaultAccess( ULib.ACCESS_ADMIN )
respawn:help( "Respawns a player" )

I literally grabbed that code from a page on these forums..  namely /index.php/topic,7454.0.html

It might work, it might not. I'm pretty sure it should.
Solving 50% of people's questions by searching it up on google.

Trying to think of a cool idea to code, so I can inspire myself to code. If you want something done, please message me!

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Looking for certain scripts compatible with Excl's JailBreak 7
« Reply #2 on: February 22, 2016, 08:01:23 am »
As feldma said, use the search function. Most of these can be found somewhere on this forum, and if not here then they can probably be found with google.

Anyways, here are the ones I use on my Jail Break server:

Respawn:

Code: Lua
  1. --Made by roastchicken for Infamous Jailbreak
  2.  
  3. local CATEGORY_NAME = "Utility"
  4.  
  5. function ulx.respawn( calling_ply, target_plys )
  6.   local affected_plys = {}
  7.   for i=1, #target_plys do
  8.     local v = target_plys[ i ]
  9.     if !v:Alive() then
  10.       v._jb_forceRespawn = true
  11.       v:Spawn()
  12.       table.insert(affected_plys, v)
  13.     end
  14.   end
  15.   ulx.fancyLogAdmin( calling_ply, "#A respawned #T", affected_plys )
  16. end
  17. local respawn = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn, "!respawn" )
  18. respawn:addParam{ type=ULib.cmds.PlayersArg }
  19. respawn:defaultAccess( ULib.ACCESS_ADMIN )
  20. respawn:help( "Respawns target(s)." )

Forceswap:

This is only 2/3 of what you want, in separate commands. If you know a bit of lua you could easily combine these and add switching to prisoner.

Code: Lua
  1. --Made by roastchicken for Infamous Jailbreak
  2.  
  3. local CATEGORY_NAME = "Utility"
  4.  
  5. ------------------------------ Force Spectator ------------------------------
  6. function ulx.fspec( calling_ply, target_plys, should_unspec )
  7.   for i=1, #target_plys do
  8.     local v = target_plys[ i ]
  9.     if should_unspec then
  10.       v:SetTeam(1)
  11.     else
  12.       v:Kill()
  13.       v:SetTeam(TEAM_SPECTATOR)
  14.     end
  15.     if should_unspec then
  16.       ulx.fancyLogAdmin( calling_ply, "#A forced #T to join the world of the living.", target_plys )
  17.     else
  18.       ulx.fancyLogAdmin( calling_ply, "#A forced #T to spectate.", target_plys )
  19.     end
  20.   end
  21. end
  22. local fspec = ulx.command( CATEGORY_NAME, "ulx fspec", ulx.fspec, "!fspec" )
  23. fspec:addParam{ type=ULib.cmds.PlayersArg }
  24. fspec:addParam{ type=ULib.cmds.BoolArg, invisible=true }
  25. fspec:defaultAccess( ULib.ACCESS_ADMIN )
  26. fspec:setOpposite( "ulx unspec", {_, _, true}, "!unspec" )
  27. fspec:help( "Forces the target(s) to/from spectator." )
  28.  
  29. ------------------------------ Force Swap ------------------------------
  30. function ulx.forceswap( calling_ply, target_ply)
  31.   local cur_team = target_ply:Team()
  32.   if cur_team == 2 then
  33.     target_ply:SetTeam(1)
  34.     target_ply:Kill()
  35.     ulx.fancyLogAdmin( calling_ply, "#A forceswapped #T for breaking the rules. Do NOT switch back or you will be kicked.", target_ply )
  36.   end
  37. end
  38. local forceswap = ulx.command( CATEGORY_NAME, "ulx forceswap", ulx.forceswap, "!forceswap" )
  39. forceswap:addParam{ type=ULib.cmds.PlayerArg }
  40. forceswap:defaultAccess( ULib.ACCESS_ADMIN )
  41. forceswap:help( "Forces the target(s) to join prisoners." )

Report system:
AWarn2 on ScriptFodder

Not sure what you mean by "configurable damage logs". Excl's JB7 comes with a (albeit simple and a bit buggy) damage log system which you can view by opening the F1 menu and going to "logs". I tried to refactor Tommy228's TTT Damage Logs but I got bored and I think writing a damage log system from scratch would be better than trying to force TTT damage logs into the Jailbreak mold.

Tabbed MOTD:

This is just some stuff I found with google. It may or may not work:

/index.php/topic,6113.0.html />
https://facepunch.com/showthread.php?t=1459624
« Last Edit: February 22, 2016, 08:03:55 am by roastchicken »
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Looking for certain scripts compatible with Excl's JailBreak 7
« Reply #3 on: February 22, 2016, 03:25:09 pm »
@feldma and @roastchicken, you folks are going to make me cry in happiness.
 :'( :) ;) :D  ;D 8)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Devyn

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
Re: Looking for certain scripts compatible with Excl's JailBreak 7
« Reply #4 on: February 22, 2016, 03:26:16 pm »
Wow, you guys are awesome, thanks for the replies! @feldma @roastchicken

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Looking for certain scripts compatible with Excl's JailBreak 7
« Reply #5 on: February 22, 2016, 03:42:53 pm »
Found this searching for the word jailbreak in Releases.
Please, PLEASE learn to use search. It saves my decrepit old fingers from having to type.
/index.php/topic,8592.0.html#msg44160
Covers your team swap (which roast chicken didn't need to do for you)

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

  • Print