Guest User

client

a guest
Mar 12th, 2014
8
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Kill message script loaded!")
  2. local teamslist = {" innocent.", " traitor.", " detective."}
  3. local teamscolors = {Color(0, 200, 0, 255), Color(180, 50, 40, 255), Color(50, 60, 180, 255)}
  4.  
  5. function PrintKillMsg(um)
  6.     local nick = um:ReadString()
  7.     local team = um:ReadChar()
  8.     chat.AddText(Color(255, 255, 255), "You were killed by ", teamscolors[team], nick, Color(255, 255, 255), ", he was a", teamscolors[team], teamslist[team])
  9. end
  10.  
  11. usermessage.Hook("KillMsg", PrintKillMsg)
RAW Paste Data