Raised This Month: $32 Target: $400
 8% 

Connect Announce


Post New Thread Reply   
 
Thread Tools Display Modes
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 02-13-2017 , 18:39   Re: Connect Announce
Reply With Quote #841

Ok, that makes sense. I still think its out of scope for this particular plugin though. Possible something you could hook up thru the MOTD or theres possible another plugin that already does this?

I dont think it would take too much to strip out all the other crap this and make it just do what you need though, probably just have to put it on a delay timer or something so it plays to the connecting player once they are 'fully' connected and in game.
__________________
Arg! is offline
away000
Veteran Member
Join Date: Sep 2010
Old 02-13-2017 , 18:49   Re: Connect Announce
Reply With Quote #842

Quote:
Originally Posted by Arg! View Post
Ok, that makes sense. I still think its out of scope for this particular plugin though. Possible something you could hook up thru the MOTD or theres possible another plugin that already does this?

I dont think it would take too much to strip out all the other crap this and make it just do what you need though, probably just have to put it on a delay timer or something so it plays to the connecting player once they are 'fully' connected and in game.
Actualy, there's some plugins who could be nice JoinSounds but, some of them are dead/broken and others doesn't feature this kind of thing (joinsound only to the connected and disconnect for all), some of them even doesn't have DC sound :/
__________________
away000 is offline
alcybery
Member
Join Date: Apr 2016
Old 03-15-2017 , 12:13   Re: Connect Announce
Reply With Quote #843

Tried to add another placeholder, but I have compilation errors (error 147: new-style declarations are required) even with unmodified version 1.8.
I'm using sourcemod-1.7.3-git5330-windows to compile. But it says in changelog even version 1.7 was compiled with sourcemod 1.7.3
What am I doing wrong?
Code:
cannounce.sp(47) : error 147: new-style declarations are required
cannounce.sp(48) : error 147: new-style declarations are required
cannounce.sp(49) : error 147: new-style declarations are required
cannounce.sp(50) : error 147: new-style declarations are required
cannounce.sp(52) : error 147: new-style declarations are required
cannounce/countryshow.sp(8) : error 147: new-style declarations are required
cannounce/countryshow.sp(9) : error 147: new-style declarations are required
cannounce/countryshow.sp(10) : error 147: new-style declarations are required
cannounce/countryshow.sp(12) : error 147: new-style declarations are required
cannounce/countryshow.sp(22) : error 147: new-style declarations are required
cannounce/countryshow.sp(39) : error 147: new-style declarations are required
cannounce/countryshow.sp(41) : error 147: new-style declarations are required
cannounce/countryshow.sp(42) : error 147: new-style declarations are required
cannounce/countryshow.sp(78) : error 147: new-style declarations are required
cannounce/countryshow.sp(91) : error 147: new-style declarations are required
cannounce/countryshow.sp(91) : error 147: new-style declarations are required
cannounce/countryshow.sp(93) : error 147: new-style declarations are required
cannounce/countryshow.sp(94) : error 147: new-style declarations are required
cannounce/countryshow.sp(95) : error 147: new-style declarations are required
cannounce/countryshow.sp(97) : error 147: new-style declarations are required
cannounce/countryshow.sp(163) : error 147: new-style declarations are required
cannounce/joinmsg.sp(14) : error 147: new-style declarations are required
cannounce/joinmsg.sp(16) : error 147: new-style declarations are required
cannounce/joinmsg.sp(17) : error 147: new-style declarations are required
cannounce/joinmsg.sp(19) : error 147: new-style declarations are required
cannounce/joinmsg.sp(20) : error 147: new-style declarations are required

Compilation aborted.
26 Errors.
EDIT: Removed #pragma newdecls required in morecolors.inc and it worked

Last edited by alcybery; 03-15-2017 at 20:00.
alcybery is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 03-15-2017 , 20:50   Re: Connect Announce
Reply With Quote #844

Oh that makes sense - it shouldnt actually be in includes from what i just read before and should only be stated after the includes as it will apply it to all the following code essentially whats happened here.

Thats good coz i was tearing my hair out trying to work out why it was forcing new syntax!
__________________
Arg! is offline
SytekBox
AlliedModders Donor
Join Date: Feb 2017
Location: 404 not found
Old 04-05-2017 , 00:20   Re: Connect Announce
Reply With Quote #845

Could it be possible to have a new Placeholder for the Custom Message and perhaps use a CVAR to enable manual placement of the Custom message through Placeholder?
SytekBox is offline
bongotrommler
Senior Member
Join Date: Feb 2013
Location: GG-Elite.Net
Old 05-27-2017 , 06:50   Re: Connect Announce
Reply With Quote #846

Hi, is it possible to get rainbow-colored join / leave messages ?
bongotrommler is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 05-28-2017 , 20:22   Re: Connect Announce
Reply With Quote #847

Quote:
Originally Posted by SytekBox View Post
Could it be possible to have a new Placeholder for the Custom Message and perhaps use a CVAR to enable manual placement of the Custom message through Placeholder?
sorry, i dont follow the cvar part of that - or why or what your trying to achieve.

Quote:
Originally Posted by bongotrommler View Post
Hi, is it possible to get rainbow-colored join / leave messages ?
This sounds interesting, im not sure how the configuration for that would look like though. Perhaps a {rainbow} color tag placed at the start of the string (or anywhere in the string?) that would override all other color tags and force the whole string to cycle through the available colors. Would have to do some engine checks though to see what colors are available for currently loaded game.

Open to implementation suggestions!
__________________
Arg! is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 06-28-2017 , 00:15   Re: Connect Announce
Reply With Quote #848

When running my own server, sometimes I saw some banned players of teamkilling try to connect the server again and again, and their disconnected messages would show many times.

Could author add a feature that if banned players keep rejoining the server, only show their messages once during the server running, so no one will realize how hard they join a server?
__________________
Kill all the son of a bitches, that's my official instructions.
L4Dε Modified Talker

Last edited by bazrael; 08-19-2017 at 16:18.
bazrael is offline
speeedd
New Member
Join Date: Jul 2017
Old 07-05-2017 , 09:40   Re: Connect Announce
Reply With Quote #849

Hi all...

i'am Install This plugin and I got the following:

Code:
L 07/05/2017 - 18:08:19: SourceMod error session started
L 07/05/2017 - 18:08:19: Info (map "de_dust2") (file "errors_20170705.log")
L 07/05/2017 - 18:08:19: [SM] Unable to load plugin "cannounce.smx": Native "__FLOAT_GT__" was not found
please Help me
speeedd is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 08-19-2017 , 16:47   Re: Connect Announce
Reply With Quote #850

Found a weird problem about sm_setjoinsnd: A few weeks ago, I tried to join some custom sounds for friends, but it was weird that custom sounds wouldn't play when they connected to my server first time and the color setting of custom messages didn't work, either. (Color setting was wrong but messages could show.) If they left my server and reconnected back, their custom sounds and color setting of messages would get worked.
PHP Code:
"CustomJoinMessages"
{
    
"STEAM_1:0:12345"
    
{
        
"playerwasnamed"        "Player 1"
        "message"        "{Green}I love{Default}Zoey{Yellow}~{Red}❤"
        "soundfile"        "player/survivor/voice/teengirl/genericresponses37.wav"
    
}
    
"STEAM_1:1:67890"
    
{
        
"playerwasnamed"        "Player 2"
        "message"        "{Red}❤{Olive}I love J cup{Red}Girl❤"
        "soundfile"        "player/survivor/voice/mechanic/adrenaline03.wav"
    
}

I've tested these sounds with sm_playsnd so they could work in our games certainly. By the way, we plays L4D2.
bazrael is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode