[EDGE] - Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeServersLatest imagesSearchRegisterLog in

 

 [LUA][DONE] Player Dies script.

Go down 
3 posters
AuthorMessage
Forez
Member
Forez


Posts : 87
Join date : 2011-10-06

[LUA][DONE] Player Dies script. Empty
PostSubject: [LUA][DONE] Player Dies script.   [LUA][DONE] Player Dies script. EmptyTue 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.
Back to top Go down
Miaw
Owner
Owner
Miaw


Posts : 170
Join date : 2011-08-21
Location : Badass Island

[LUA][DONE] Player Dies script. Empty
PostSubject: Re: [LUA][DONE] Player Dies script.   [LUA][DONE] Player Dies script. EmptyTue Oct 11, 2011 5:48 am

Cool, I'll test it out for you
Back to top Go down
Beasty
Moderator
Moderator
Beasty


Posts : 111
Join date : 2011-08-21

[LUA][DONE] Player Dies script. Empty
PostSubject: Re: [LUA][DONE] Player Dies script.   [LUA][DONE] Player Dies script. EmptyTue 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 ^^
Back to top Go down
https://edgecommunity.forumotion.com
Forez
Member
Forez


Posts : 87
Join date : 2011-10-06

[LUA][DONE] Player Dies script. Empty
PostSubject: Re: [LUA][DONE] Player Dies script.   [LUA][DONE] Player Dies script. EmptyTue Oct 11, 2011 11:19 pm

It will print message in chat.But don't worry,it will work only for admins.
Back to top Go down
Beasty
Moderator
Moderator
Beasty


Posts : 111
Join date : 2011-08-21

[LUA][DONE] Player Dies script. Empty
PostSubject: Re: [LUA][DONE] Player Dies script.   [LUA][DONE] Player Dies script. EmptyWed 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.
Back to top Go down
https://edgecommunity.forumotion.com
Sponsored content





[LUA][DONE] Player Dies script. Empty
PostSubject: Re: [LUA][DONE] Player Dies script.   [LUA][DONE] Player Dies script. Empty

Back to top Go down
 
[LUA][DONE] Player Dies script.
Back to top 
Page 1 of 1
 Similar topics
-
» [DONE] Anti friendly fire script
» Regarding the player Unknown
» PlayX 2.6 YouTube Player

Permissions in this forum:You cannot reply to topics in this forum
[EDGE] - Community :: Media :: Mapping, Lua and Other Developments-
Jump to: