Im setting something up for my Community's TTT server and i had this cool idea that is pretty simple. I want to play a part of the song Karma Police by Radiohead [url]http://www.youtube.com/watch?v=IBH97ma9YiI[/url] after someone gets karma banned. We use ULX.
Anyone want to do some kiddie scripting for me?
Ill love you forever.
No idea if this actually works, but try this:
Go to gamemodes/terrortown/gamemode
Open karma.lua
On line [B]345[/B], find:
[lua] ply:KickBan(config.bantime:GetInt(), reason)[/lua]
Add on a new blank line [B]after[/B]:
[lua] surface.PlaySound( "" ) -- Path to your sound file between quotes[/lua]
On line [B]349[/B], find:
[lua] ply:Kick(reason)[/lua]
Add on a new blank line [B]after[/B]:
[lua] surface.PlaySound( "" ) -- Path to your sound file between quotes[/lua]
It should look like this:
[lua] if config.autoban:GetBool() then
ply:KickBan(config.bantime:GetInt(), reason)
surface.PlaySound( "" ) -- Path to your sound file between quotes
else
ply:Kick(reason)
surface.PlaySound( "" ) -- Path to your sound file between quotes
end[/lua]
Wow for once I actually saw people help the guy out without telling him to learn it himself.
Sorry, you need to Log In to post a reply to this thread.