[Mod Request] Know when someone dies

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

[Mod Request] Know when someone dies

by InfinityProject » Tue Jul 17, 2012 18:07

I don't know if this has already been made or not but could someone make a mod that when someone dies it says something like: InfinityProject has died

Maybe it could say if someone killed you.
Mayajazz killed InfinityProject
 

cosarara97
Member
 
Posts: 180
Joined: Tue Nov 01, 2011 18:53

by cosarara97 » Tue Jul 17, 2012 20:59

The "player1 killed player2" would be more difficult to do, because it depends on how the player died, and you'll have to modify the functions which "kill" the player, I think. But for the "player1 died", this should work:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_dieplayer(function(player)
    minetest.chat_send_all(player:get_player_name() .. " has died.")
    return true
end)
:D
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 44 guests

cron