mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-12 16:38:18 +01:00
Part 2
Fixes and now cannot respawn as the same character for roleplay reasons.
This commit is contained in:
+11
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user