Forez Member
Posts : 87 Join date : 2011-10-06
| Subject: [LUA][DONE] Player Dies script. Tue Oct 11, 2011 4:24 am | |
| - Code:
-
function playerDies( victim, weapon, killer ) Msg( " Player " .. victim:GetName() .. " has died.\n" ) end hook.Add( "PlayerDeath", "playerDeathTest", playerDies )
function checkAdmin(ply) if ply:IsAdmin() then ply:ChatPrint(attacker:GetName() .. " shot " .. victim:GetName() .. " What an ass! ") end end concommand.Add("info_admin", checkAdmin) This should notify admin when someone kills another player.I ran it on listen server without any console error,so I am about 90% sure it will work fine. | |
|
Miaw Owner
Posts : 170 Join date : 2011-08-21 Location : Badass Island
| Subject: Re: [LUA][DONE] Player Dies script. Tue Oct 11, 2011 5:48 am | |
| Cool, I'll test it out for you | |
|
Beasty Moderator
Posts : 111 Join date : 2011-08-21
| Subject: Re: [LUA][DONE] Player Dies script. Tue Oct 11, 2011 5:57 pm | |
| Would this Pop up Into The Console or does it actually message you?
Because I dont want to be spammed with mesages on my screen ^^ | |
|
Forez Member
Posts : 87 Join date : 2011-10-06
| Subject: Re: [LUA][DONE] Player Dies script. Tue Oct 11, 2011 11:19 pm | |
| It will print message in chat.But don't worry,it will work only for admins. | |
|
Beasty Moderator
Posts : 111 Join date : 2011-08-21
| Subject: Re: [LUA][DONE] Player Dies script. Wed Oct 12, 2011 2:04 am | |
| ... And Mods? I hate it when someone suddenly dies or i suddenly die and i have no idea who it was.
Can't you make it so i you say /KillsList It Shows A List of kills. | |
|
Sponsored content
| Subject: Re: [LUA][DONE] Player Dies script. | |
| |
|