I'm looking for something that will tell you when you die either:
You died from an innocents hands!
You died from a traitors hands!
or
You died from a detectives hands!
I have ULX and SourceBans already installed.
How can I get this?
What have you tried so far? Developer forum is for receiving help / providing help for/from developers.
It's pretty straight forward: Serverside PlayerDeath hook, net messages to send data to the client ( who died / victim ) telling them the :GetRole( ) of the player.
If you're just looking for a script that can do this, add me on Steam I can sell you usage rights for one I've coded which tells you the player, and the role in color with proper grammar. Additionally I could add the weapon to that output if you like.
[QUOTE=Acecool;41867862]What have you tried so far? Developer forum is for receiving help / providing help for/from developers.
It's pretty straight forward: Serverside PlayerDeath hook, net messages to send data to the client ( who died / victim ) telling them the :GetRole( ) of the player.
If you're just looking for a script that can do this, add me on Steam I can sell you usage rights for one I've coded which tells you the player, and the role in color with proper grammar. Additionally I could add the weapon to that output if you like.[/QUOTE]
I have almost 0 lua experience, and I don't really have the money to buy one.
Are there any other alternatives?
Well, the Dev forum is for devs so I mean if you put some effort into it we could guide you. I basically gave you all the functions/libraries/hooks you'd need to look up on [url]http://wiki.garrysmod.com[/url] to start building your own aside from the chat library.
You could check the workshop, but I don't think there are any on there.
You could check Coderhire.com, but they want money.
I could sell you a license to use mine incredibly inexpensive, I'll send you a pm with the cost ( Edit: You're not accepting PMs. Could you swing $2.50? )..
There are tons of options available: Learn to code, and we'll guide you. Post a job on Coderhire.com. Wait for one to be released which could be whoever knows how long. Buy one outright.
I use an addon called "TTT Kill Revealer" and it was made by Loures.
Yep I would about to say this is a plugin/adding you can install for TTT that's already built.
I've written a small code myself to show who killed you, their role, and their weapon:
[code]
--DeathNotifier:
function informDead( victim, weapon, killer )
ply:PrintMessage( HUD_PRINTTALK, "You were killed by" ..killer.. " ( " ..killer:GetRole().. " ) using " ..weapon.. ". /n"
ply:PrintMessage( HUD_PRINTTALK, "Were you RDMed? If so, type !report in chat to report the RDMer /n"
end
hook.Add( "PlayerDeath", "getKiller", informDead );
--!report:
function reportRDM( ply, text, public )
if (string.sub(text, 1, 7) == "!report ") then
return "@"..string.sub( text, 8 );
end
end
hook.Add( "PlayerSay", "reportRDM", reportRDM )
[/code] The second one is to report RDM, basically a player types !report and their message and sends it to ULX admin chat using @.
Sorry, you need to Log In to post a reply to this thread.