Ulysses Stuff > Releases
Player Connect/Disconnect Message [1.11v]
Bite That Apple:
After years of hard dedicated wam, err I mean development, I HAVE MADE IT SO IT TELLS YOU IF A PLAYER HAS CONNECTED! Now with the ability to disable the sound to for those whiners.... I'll update it within the hour.
UltimateByte:
Lol, you rock dude.
What did you change from the 1.1 to the 1.11 ?
Shu | Pexie:
Do you know how can i change all the sound effects?
I mean... i tried to put a new sound as the example:
"garrysmod/sound/test.wav"
or
"sound/test.wav"
or
"sound/test.mp3"
but it seems that doesn´t work, someone could give me a hand?
UltimateByte:
As the original script is (if i remember well) using a sound from HL2, you need to add the file to files to download (with something like resource.addfile (""), and i guess precache the sound.
Bite That Apple:
--- Quote from: Shu | Pexie on June 25, 2015, 08:16:44 AM ---but it seems that doesn´t work, someone could give me a hand?
--- End quote ---
Going on from the above, if you want to add custom files, never put sound files you want to use directly in the sound folder (garrysmod/sound), because chances are, something may already exist. You need to make a new sound folder in my addon (garrysmod/addons/apple_join_disconnect_warning/sound/NEWFOLDERNAME (and be creative)), and put the sound files in there. After that, in the sv_player.lua you need to put this line resource.AddFile("") under the AddCSLuaFile( "cl_player.lua" ), and for the resource line, you need to add the directory of the new sound ( resource.AddFile("sound/NEWFOLDERNAME/soundfile.mp3") ), and then also change the surface.PlaySound("") in cl_player.lua, and that will all work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version