Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2024, 04:04:58 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: Rearm scripts refuse to work on: February 17, 2012, 11:21:29 PM
I see, thank you
2  Other / Trouble in Terrorist Town / [FIX] Rearm scripts refuse to work on: February 17, 2012, 11:03:22 PM
They just dont. They are in my SRCDS's garrysmod/maps and garrysmod/data/ttt/maps folders.
3  Other / Trouble in Terrorist Town / Re: Two lua files. Neither work. on: February 11, 2012, 02:48:06 AM
Nvm working :D

I removed the "if GetRoundState() == ROUND_BEGIN then"
4  Other / Trouble in Terrorist Town / Two lua files. Neither work. on: February 11, 2012, 02:00:09 AM
So I have two files. colours.lua (the u is on purpose) and roundsong.lua

Both use the hooks but neither work.

Colours is in autorun. Roundsong is in autorun/server.

RoundSong
resource.AddFile("sound/ttt/tators.wav")
resource.AddFile("sound/ttt/roundstart.mp3")

local function PlayMusic(wintype)
  if wintype == WIN_INNOCENT then
      BroadcastLua('surface.PlaySound("ttt/thump01e.mp3")')
  else
      BroadcastLua('surface.PlaySound("ttt/tators.wav")')
  end
end
hook.Add("TTTEndRound", "PlayMusic", PlayMusic)

local function PlayStartMusic()
if GetRoundState() == ROUND_BEGIN then
BroadcastLua('surface.PlaySound("ttt/roundstart.mp3")')
end
hook.Add("TTTBeginRound", "PlayStartMusic", PlayStartMusic)


Colours
if SERVER then
  AddCSLuaFile("colours.lua")
else

  function OwnerColors(ply)
if ply:SteamID() == "STEAM_0:0:9310913" then -- Charrax
return Color( 5, 181, 225 )
end
end

hook.Add( "TTTScoreboardColorForPlayer ", "OwnerColors", ColorName )

end
5  Other / Trouble in Terrorist Town / Re: How do I change the round start and end songs? on: July 07, 2011, 03:05:45 AM
local function PlayMusic(wintype)
  if wintype == WIN_INNOCENT then
     BroadcastLua('surface.PlaySound("nnjg/detective.mp3")')
  else
     BroadcastLua('surface.PlaySound("nnjg/pwnedftw.mp3")')
  end
end
hook.Add("TTTEndRound", "MyMusic", PlayMusic)


Change to what you want, lua/autorun/server


Thanks!

But what about round start?
6  Other / Trouble in Terrorist Town / How do I change the round start and end songs? on: July 07, 2011, 02:33:04 AM
I tried putting them in the folder with the "thump" sounds and changing the name in the cl_init to match the new song names. (line 150-164).

How can I change the sounds correctly?

Pages: [1]


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.013 seconds with 19 queries.