Fixes and now cannot respawn as the same character for roleplay reasons.
This commit is contained in:
QuoteFox
2020-09-25 18:08:32 +01:00
parent 1d5cf4bde1
commit 27b33f04bc
4 changed files with 22 additions and 7 deletions
+11 -5
View File
@@ -423,15 +423,17 @@
to_chat(usr, "<span class='boldnotice'>You must be dead to use this!</span>")
return
if(usr.client.lastrespawn <= world.time)
usr.client.lastrespawn = world.time + 1800 SECONDS
else
if(usr.client.lastrespawn >= world.time)
to_chat(usr, "<span class='warning'>You must wait [DisplayTimeText(usr.client.lastrespawn - world.time)] before respawning!</span>")
return
log_game("[key_name(usr)] used abandon mob.")
//if they didnt join as a observer, add their name to the past character list so they cannot play them again.
to_chat(usr, "<span class='boldnotice'>Please roleplay correctly, do not meta-game, and use information from a different character or characters, to influence your actions!</span>")
if(!usr.client.respawn_observing)
var/responserespawn = alert(src,"If you respawn now, you cannot rejoin the game as your current character! Are you sure you want to respawn?","Warning","Yes","No")
if(responserespawn != "Yes")
return
usr.client.pastcharacters += usr.real_name
if(!client)
log_game("[key_name(usr)] AM failed due to disconnect.")
@@ -448,6 +450,10 @@
qdel(M)
return
to_chat(usr, "<span class='boldnotice'>Please roleplay correctly, do not meta-game, and use information from a different character or characters, to influence your actions!</span>")
usr.client.lastrespawn = world.time + 1800 SECONDS
usr.client.respawn_observing = 0
message_admins("[client.ckey] respawned.")
M.key = key
// M.Login() //wat