mob
proc
deathcheck(mob/M)
if(istype(M,/mob/Player/))
M<<"You have died!"
sleep(4)
M<<"You will lose half your gold if you respawn. Do you wish to respawn, or wait 3 minutes for another player to revive you?"
M<<input("Wait for another player to revive you?") in list("Yes","No")
switch(M)
if("Yes")
src<<"You have 3 minutes."
sleep(2400)
if(M.dead)
M.Move(locate(M.GX,M.GY,M.GZ))
var/nowgold = round(M.gold/2)
M.gold = nowgold
if("No")
M.Move(locate(M.GX,M.GY,M.GZ))
var/nowgold = round(M.gold/2)
M.gold = nowgold
del M
Problem description:
It always asks me if I want to respawn if I kill another /mob/Player/. Waht did I do wrong?