Auto Respawn

Release your plugins here!
User avatar
Kill
Member
Posts: 88
Joined: Wed Aug 31, 2016 10:05 pm

Re: Auto Respawn

Postby Kill » Sat Nov 05, 2016 4:50 pm

L'In20Cible wrote:Also, the following:

Syntax: Select all

Delay(ar_delay.get_int(), respawn, player.userid)

def respawn(userid):
try:
player = Player.from_userid(userid)
except ValueError:
return
if player.dead: # is player dead?
player.spawn()

Could now simply be:

Syntax: Select all

player.delay(ar_delay.get_int(), player.spawn)


Yes, but I want to make sure the player is dead, as iPlayer suggested.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: Auto Respawn

Postby satoon101 » Sat Nov 05, 2016 4:56 pm

The reason L'In20Cible mentions that is that we now do that check automatically:
https://github.com/Source-Python-Dev-Te ... 2d81a67e4c
Image
User avatar
Kill
Member
Posts: 88
Joined: Wed Aug 31, 2016 10:05 pm

Re: Auto Respawn

Postby Kill » Sat Nov 05, 2016 5:20 pm

satoon101 wrote:The reason L'In20Cible mentions that is that we now do that check automatically:
https://github.com/Source-Python-Dev-Te ... 2d81a67e4c

Okay, thanks!

Return to “Plugin Releases”

Who is online

Users browsing this forum: Google [Bot] and 28 guests