Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. llinformation.lua")
  2.  
  3. function informTheVictims(victim,inflictor,killer)
  4.    if killer:IsRole(ROLE_INNOCENT) then
  5.         victim:PrintMessage(HUD_PRINTTALK, ""..killer:Nick().." killed you! He was an innocent!\n")
  6.     elseif killer:IsRole(ROLE_TRAITOR) then
  7.         victim:PrintMessage(HUD_PRINTTALK, ""..killer:Nick().." killed you! He was a traitor!\n")
  8.     else
  9.         victim:PrintMessage(HUD_PRINTTALK, ""..killer:Nick().." killed you! He was a detective!\n")
  10.     end
  11. end
  12.     hook.Add("PlayerDeath","informTheVictims",informTheVictims)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement