Author Topic: Excl 7 Jailbreak ULX Module  (Read 4660 times)

0 Members and 1 Guest are viewing this topic.

Offline _I_TROLLFACE_I_

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Excl 7 Jailbreak ULX Module
« on: December 23, 2014, 08:49:50 PM »
Hi, all. I create server on Excl JB 7, and I need admin commands for this gamemode. I make makeguard and makeprisoner. How to make warden, endround and demotewarden?

Offline Ryan Hemmet

  • Newbie
  • *
  • Posts: 20
  • Karma: 8
    • https://adversarygaming.com
Re: Excl 7 Jailbreak ULX Module
« Reply #1 on: April 03, 2015, 07:09:28 PM »
Are you asking how to make these or where to get them?

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Excl 7 Jailbreak ULX Module
« Reply #2 on: April 03, 2015, 07:54:28 PM »
He's asking us to make them for him I think..
Once you get to know me, you'll find you'll have never met me at all.

Offline Livaco

  • Full Member
  • ***
  • Posts: 133
  • Karma: -37
    • Livaco
Re: Excl 7 Jailbreak ULX Module
« Reply #3 on: April 04, 2015, 05:39:25 AM »
If You Are Asking Us To Make Them For You, You Might Need To Learn LUA. I Could Teach You If U Want
Here To Help And Be Happy And Help :)

My Website
My Addons
PermaBanV1.0

Quote from:  Livaco on April 12 at 9:10:20 PM
I May Be Dum But Am Still Better Then The Rest

Livaco Products©

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Excl 7 Jailbreak ULX Module
« Reply #4 on: April 04, 2015, 01:01:05 PM »
You're all responding to a 3 month old post, and the person that posted hasn't even been here since the day they posted it.
If I were going to answer a 3 month old post, I'd likely post a link to a site that would give instruction or links to what the person is asking for in case anyone else came along, as it's quite apparent the original poster isn't going to.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: Excl 7 Jailbreak ULX Module
« Reply #5 on: April 06, 2015, 07:03:55 AM »
I'll throw my hat in here, as I've tweaked all 5 to work in JB7.

Code: [Select]
local CATEGORY_NAME = "Jailbreak"
local versioncheck = "";
local CurrentVersion = "1.2.5.JB7"
print("ULX Jailbreak by Classified Version("..CurrentVersion..") is loading")

local TEAM_GUARD = 2;
local TEAM_PRISONER = 1;

------------------------------ Make Prisoner------------------------------
function ulx.makeprisoner( calling_ply, target_plys )
local affected_plys = {}

for i=1, #target_plys do
local v = target_plys[ i ]

if ulx.getExclusive( v, calling_ply ) then
ULib.tsayError( calling_ply, ulx.getExclusive( v, calling_ply ), true )
//elseif not v:Alive() then
// ULib.tsayError( calling_ply, v:Nick() .. " is already dead!", true )
elseif v:IsFrozen() then
ULib.tsayError( calling_ply, v:Nick() .. " is frozen!", true )
else
v:KillSilent()
v:SetTeam(TEAM_PRISONER)
v.AllowRespawn = true
v:Spawn();
table.insert( affected_plys, v )
end
end

ulx.fancyLogAdmin( calling_ply, "#A changed the team of #T", affected_plys )
end
local makeprisoner = ulx.command( CATEGORY_NAME, "ulx makeprisoner", ulx.makeprisoner, "!makeprisoner" )
makeprisoner:addParam{ type=ULib.cmds.PlayersArg }
makeprisoner:defaultAccess( ULib.ACCESS_ADMIN )
makeprisoner:help( "Changes the team of the target(s) to prisoner." )

------------------------------ Make Guard ------------------------------
function ulx.makeguard( calling_ply, target_plys )
local affected_plys = {}

for i=1, #target_plys do
local v = target_plys[ i ]

if ulx.getExclusive( v, calling_ply ) then
ULib.tsayError( calling_ply, ulx.getExclusive( v, calling_ply ), true )
//elseif not v:Alive() then
// ULib.tsayError( calling_ply, v:Nick() .. " is already dead!", true )
elseif v:IsFrozen() then
ULib.tsayError( calling_ply, v:Nick() .. " is frozen!", true )
else
v:KillSilent()
v:SetTeam(TEAM_GUARD)
v.AllowRespawn = true
v:Spawn();
table.insert( affected_plys, v )
end
end

ulx.fancyLogAdmin( calling_ply, "#A changed the team of #T", affected_plys )
end
local makeguard = ulx.command( CATEGORY_NAME, "ulx makeguard", ulx.makeguard, "!makeguard" )
makeguard:addParam{ type=ULib.cmds.PlayersArg }
makeguard:defaultAccess( ULib.ACCESS_ADMIN )
makeguard:help( "Changes the team of the target(s) to prisoner." )

------------------------------ Make Warden ------------------------------
function ulx.makewarden( calling_ply, target_plys )
local affected_plys = {}

for i=1, #target_plys do
local v = target_plys[ i ]

if ulx.getExclusive( v, calling_ply ) then
ULib.tsayError( calling_ply, ulx.getExclusive( v, calling_ply ), true )
elseif not v:Alive() then
ULib.tsayError( calling_ply, v:Nick() .. " is already dead!", true )
elseif v:IsFrozen() then
ULib.tsayError( calling_ply, v:Nick() .. " is frozen!", true )
else

local warden=JB.TRANSMITTER:GetJBWarden()
if IsValid(warden) then
warden:RemoveWardenStatus();
table.insert( affected_plys, warden )
end

v:KillSilent()
v:SetTeam(TEAM_GUARD)
v.AllowRespawn = true
v:Spawn();
v:AddWardenStatus();
table.insert( affected_plys, v )
end
end

ulx.fancyLogAdmin( calling_ply, "#A forced warden #T", affected_plys )
end
local makewarden = ulx.command( CATEGORY_NAME, "ulx makewarden", ulx.makewarden, "!makewarden" )
makewarden:addParam{ type=ULib.cmds.PlayersArg }
makewarden:defaultAccess( ULib.ACCESS_ADMIN )
makewarden:help( "Force warden of the target(s)." )

------------------------------ Demote Warden ------------------------------
function ulx.demotewarden( calling_ply, target_plys )
local affected_plys = {}

local warden=JB.TRANSMITTER:GetJBWarden()
if IsValid(warden) then
table.insert( affected_plys, warden )
warden:RemoveWardenStatus();
end

ulx.fancyLogAdmin( calling_ply, "#A demoted warden #T", affected_plys )
end
local demotewarden = ulx.command( CATEGORY_NAME, "ulx demotewarden", ulx.demotewarden, "!demotewarden" )
demotewarden:addParam{ type=ULib.cmds.PlayersArg }
demotewarden:defaultAccess( ULib.ACCESS_ADMIN )
demotewarden:help( "Demote current warden to guard." )


------------------------------ ROUND END ------------------------------


function ulx.roundend( calling_ply )

local number = 5
timer.Create( "RoundEndTimer", 1, 5, function()
number = number - 1
if number == 0 then
number = "NOW!"
end
ULib.csay( _, "ROUND ENDS ".. tostring(number) )
print(tostring(number))
end)

JB:EndRound()

ulx.fancyLogAdmin( calling_ply, "#A ended the round.", affected_plys )
end
local roundend = ulx.command( CATEGORY_NAME, "ulx roundend", ulx.roundend, "!roundend" )
roundend:defaultAccess( ULib.ACCESS_ADMIN )
roundend:help( "Restart the round/End the current round." )



Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Excl 7 Jailbreak ULX Module
« Reply #6 on: April 06, 2015, 08:12:25 PM »
Or, that.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming