Author Topic: ULX Respawn - Respawn Players  (Read 26359 times)

0 Members and 1 Guest are viewing this topic.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
ULX Respawn - Respawn Players
« on: December 02, 2009, 12:12:12 PM »
I got pretty tired of cexec'ing +attack then -attack on players to respawn them, so I made this  :o

Usage:
!respawn <name>
or "ulx respawn <name>"

This will respawn the player.

This is for ULX v3.40.
Also attached is the version for the SVN.
« Last Edit: December 02, 2009, 02:07:51 PM by vader0146 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX Respawn - Respawn Players
« Reply #1 on: December 02, 2009, 01:17:17 PM »
I tend to cexec attack all the time, too. :)
Experiencing God's grace one day at a time.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: ULX Respawn - Respawn Players
« Reply #2 on: December 02, 2009, 01:28:27 PM »
i like your idea for this and ulx give but i just tried them on my server and neither of them work with the new command system :(


Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: ULX Respawn - Respawn Players
« Reply #3 on: December 02, 2009, 01:36:47 PM »
i like your idea for this and ulx give but i just tried them on my server and neither of them work with the new command system :(

I'm using the release not SVN and they work perfectly, if megiddo or someone could explain how the new system works, I'd be happy to write up copies that work with the SVN  :)

are you getting any errors?

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: ULX Respawn - Respawn Players
« Reply #4 on: December 02, 2009, 02:01:43 PM »
no just invalid command... and i believe JamminR was talking about checking out this for an example of before/after the new command system


Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: ULX Respawn - Respawn Players
« Reply #5 on: December 02, 2009, 02:07:23 PM »
no just invalid command... and i believe JamminR was talking about checking out this for an example of before/after the new command system

I've made a version of respawn for the SVN, and i've attached it to the OP.
I've also attached a version of !give for the SVN to that thread.  :)
« Last Edit: December 02, 2009, 03:12:24 PM by vader0146 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX Respawn - Respawn Players
« Reply #6 on: December 02, 2009, 06:13:51 PM »
Did you test the SVN version to make sure it worked? I looked it over and it appears you got everything right. :)
Experiencing God's grace one day at a time.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: ULX Respawn - Respawn Players
« Reply #7 on: December 02, 2009, 11:37:45 PM »
Did you test the SVN version to make sure it worked? I looked it over and it appears you got everything right. :)

Yup, I downloaded a copy of the SVN and tested it in a listen server  ;)

Offline NaRyan

  • Newbie
  • *
  • Posts: 39
  • Karma: 1
Re: ULX Respawn - Respawn Players
« Reply #8 on: December 10, 2009, 04:54:26 PM »
Tried it on my server and it dont seem to work :(
Using SVN version of ULib(r94) and ULX(r79).
Downloaded the version of ULX Respawn that is for SVN.

On server startup I get the following error in the console.
"Lua Error: ulx\sh_base.lua:182: table index is nil" (only shows that error if ulx respawn is installed)

And if I use !respawn playername or ulx respawn playername it gives this error in server console.
"Lua Error: ulx\modules/respawnsvn.lua:5: attempt to get length of local 'target_plys' (a nil value)"

:(

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: ULX Respawn - Respawn Players
« Reply #9 on: December 11, 2009, 08:36:41 AM »
Tried it on my server and it dont seem to work :(
Using SVN version of ULib(r94) and ULX(r79).
Downloaded the version of ULX Respawn that is for SVN.

On server startup I get the following error in the console.
"Lua Error: ulx\sh_base.lua:182: table index is nil" (only shows that error if ulx respawn is installed)

And if I use !respawn playername or ulx respawn playername it gives this error in server console.
"Lua Error: ulx\modules/respawnsvn.lua:5: attempt to get length of local 'target_plys' (a nil value)"

:(

 :o

Works fine on my server and a friend's.

Offline NaRyan

  • Newbie
  • *
  • Posts: 39
  • Karma: 1
Re: ULX Respawn - Respawn Players
« Reply #10 on: December 12, 2009, 11:45:52 AM »
oh :(
I must have a conflict with something else on server.... grrrr

Offline tassieboy

  • Newbie
  • *
  • Posts: 12
  • Karma: -1
Re: ULX Respawn - Respawn Players
« Reply #11 on: December 12, 2009, 04:52:56 PM »
first

don't you think you should add some instructions on how to install to save new ppl asking

i am also having problems with this i installed it restarted the server went in game and tried using it the first time i got you don't have access to this command so i thort o yea thats easy to fix went and edited the groups.text and gave my self access went back and tried to use it i type it in and it dose nothing it don't make them spawn and it don't give me an error

i am using svn ulib and ulx and the svn version or respawn  all are up to date (only installed yesterday)

im assuming i get the u cant use this because i renamed my head group from super admin to owner  ;D ;D any way i can live with that 

Offline sharp

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: ULX Respawn - Respawn Players
« Reply #12 on: February 16, 2010, 07:15:37 PM »
i got the same error as NaRyan

SVN ULib(100) ULX(83)

Quote
//  MODULE: givesvn.lua      //
ulx\sh_base.lua:182: table index is nil
Quote
//  MODULE: respawnsvn.lua   //
ulx\sh_base.lua:182: table index is nil

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Respawn - Respawn Players
« Reply #13 on: February 16, 2010, 07:38:00 PM »
Though I'm not positive it will fix for all things, I know it's a good start.
Within the file, change CATEGORY_NAME to "<Where you want it in help", such as "Utility"
Make sure you use quotes.
I've not checked his non-SVN version, but the SVN had no category variable set.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline nexbr

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 5
Re: ULX Respawn - Respawn Players
« Reply #14 on: November 26, 2012, 10:15:39 AM »
« Last Edit: November 27, 2012, 04:30:38 AM by nexbr »