Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This is the one that just does the job:
- local function deathChat( ply, txt, teamChat, isDead)
- if ply:IsPlayer() and isDead == true then
- return(true)
- end
- end
- hook.Add ("OnPlayerChat", "jameZtheDeadCantTalk", deathChat)
- ------------------------------
- -- This is the one that I'm trying to add to:
- local function deathChat( ply, txt, teamChat, isDead)
- if ply:IsPlayer() and isDead == true then
- return(true)
- end
- end
- local function wtf ()
- PrintMessage( HUD_PRINTTALK, "Shhh Now! The Dead Can't Talk" )
- end
- hook.Add ("OnPlayerChat", "jameZtheDeadCantTalk", deathChat)
- hook.Add ("OnPlayerChat", "jameZtheDeadCantTalk", wtf)
- -- This shows that the PrintMessage function actually works (on a separate hook):
- local function wtf ()
- PrintMessage( HUD_PRINTTALK, "Shhh Now! The Dead Can't Talk" )
- end
- hook.Add ("OnPlayerHitGround", "sdsd", wtf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement