ULX

Poll

Was any of these somewhat interesting or "cool"?

Yes, thank you :)
262 (96.7%)
No, do better next time :(
9 (3.3%)

Total Members Voted: 270

Author Topic: Player Connect/Disconnect Message [1.11v]  (Read 133292 times)

0 Members and 1 Guest are viewing this topic.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Connect/Disconnect Message [1.09v]
« Reply #150 on: May 14, 2015, 07:22:48 PM »
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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline UltimateByte

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • FR Mesnie multigaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #151 on: May 22, 2015, 05:24:04 AM »
Lol, you rock dude.
What did you change from the 1.1 to the 1.11 ?

Offline Shu | Pexie

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Polyglot guy here!
Re: Player Connect/Disconnect Message [1.11v]
« Reply #152 on: June 25, 2015, 08:16:44 AM »
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?


Offline UltimateByte

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • FR Mesnie multigaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #153 on: June 25, 2015, 08:20:08 AM »
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.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #154 on: June 25, 2015, 01:44:40 PM »
but it seems that doesn´t  work, someone could give me a hand?

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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Shu | Pexie

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Polyglot guy here!
Re: Player Connect/Disconnect Message [1.11v]
« Reply #155 on: July 05, 2015, 08:41:44 AM »
Thanks Apple!

I will try that.


Offline xtreemninja

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Player Connect/Disconnect Message [1.11v]
« Reply #156 on: October 15, 2015, 09:31:34 AM »
Hello i was just wondering if there is way to only play a sound when an admin is joining the server and nothing else

Offline UltimateByte

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • FR Mesnie multigaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #157 on: October 16, 2015, 04:55:11 AM »
Hello i was just wondering if there is way to only play a sound when an admin is joining the server and nothing else

Excellent idea you got there. Or maybe a different sound for admins.
The best would be that this addon appears in ULX interface, and that we can tick the admin sound, or the user sound. Or even add a sound per group. With the choice of path...
Just an idea, if anyone knows how to do it and has time for it.

Offline SteamedRevenge

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Player Connect/Disconnect Message [1.11v]
« Reply #158 on: October 16, 2015, 10:52:17 AM »
Does this work with TTT?

Offline UltimateByte

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • FR Mesnie multigaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #159 on: October 16, 2015, 03:38:39 PM »
As long as you use ULX. Maybe even without.

Offline Linkz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Player Connect/Disconnect Message [1.11v]
« Reply #160 on: October 31, 2015, 08:25:01 PM »
This is prob a dumb question but how do I remove the SteamID part when the Join/Leave the server?

Offline UltimateByte

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • FR Mesnie multigaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #161 on: October 31, 2015, 09:46:22 PM »
Only admins see steamID. You should keep it.

Offline Linkz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Player Connect/Disconnect Message [1.11v]
« Reply #162 on: November 01, 2015, 12:20:30 AM »
Only admins see steamID. You should keep it.

Oh then thats fine :) thanks!

Offline UltimateByte

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • FR Mesnie multigaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #163 on: November 04, 2015, 07:57:57 AM »
You're welcome. BTW, the SteamID isn't confidential in any way, just in case you're affraid that other admins get yours. Anyone can get everyone's SteamID simply by typing "status" into the console while connected to a server.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Connect/Disconnect Message [1.11v]
« Reply #164 on: November 04, 2015, 10:22:30 PM »
You're welcome. BTW, the SteamID isn't confidential in any way, just in case you're affraid that other admins get yours. Anyone can get everyone's SteamID simply by typing "status" into the console while connected to a server.

You lie, everyone knows your SteamID is the most sacred thing a steam user has. It's like their social security card (if you live outside of the US, then you'll not understand what that is), never give it to anyone. If you see anyone screening to find your steamID, call your local steam police, and they'll come in through a firetruck and rescue you!

Wise words from an apple
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.