Seth
By: a guest | Mar 20th, 2010 | Syntax:
None | Size: 0.79 KB | Hits: 74 | Expires: Never
PopCorn -SDB-: as i am a Very good Lua coder
PopCorn -SDB-: all types
'Seth: do you know what pcall does
PopCorn -SDB-: why
PopCorn -SDB-: what do you need
PopCorn -SDB-: i can code alot of things
'Seth: do you know what a hook is?
PopCorn -SDB-: yes
PopCorn -SDB-: thsi can be classed as a hook
PopCorn -SDB-: function sayThatName(victim,inflictor,killer) //Use the same arguments as the original function you're hooking to
victim:PrintMessage(HUD_PRINTTALK,killer:Nick().." killed you!\n")
end
hook.Add("PlayerDeath","informTheVictims",sayThatName)
'Seth: did you just make that?
'Seth: awesome code
PopCorn -SDB-: :p
PopCorn -SDB-: i did tell you i can code
PopCorn -SDB-: It tells victims who killed them in chat
PopCorn -SDB-: quite usefull
PopCorn -SDB-: took me 5 mins to make