Raised This Month: $51 Target: $400
 12% 

Connect Announce


Post New Thread Reply   
 
Thread Tools Display Modes
Slaven555
Member
Join Date: Jul 2018
Old 01-14-2020 , 10:36   Re: Connect Announce
Reply With Quote #901

Try this one
Attached Files
File Type: sp Get Plugin or Get Source (cannounce.sp - 260 views - 10.1 KB)
File Type: smx cannounce.smx (22.4 KB, 261 views)

Last edited by Slaven555; 01-14-2020 at 11:00.
Slaven555 is offline
Ja-Forces
Senior Member
Join Date: Jul 2009
Location: Leningrad
Old 01-14-2020 , 10:57   Re: Connect Announce
Reply With Quote #902

Quote:
Originally Posted by MrGarfield View Post
thanks for your quick reply, but it still doesn't work, here are my actions "Meta Mod: Source v1.10.7-devV, SourceMod v1.10.0.6460" stable version download cannounce_1.8.2 zip in the cstrike / addons location I have downloaded (GeoLite2-CityMmdb and GeoLite2-Countrymmdb) install in addons / sourcemod / configs / geoip /, I downloaded https://github.com/Accelerator74/GeoIP2/releases and put in addons \ source mod \ extensions, i n still have no player information entering the server
What do you see in the log folder? Errors? Some more info?

Quote:
Originally Posted by Slaven555 View Post
You need to https://github.com/Accelerator74/GeoIP2/releases place with replacement on the path \ addons \ sourcemod \ extensions
https://forums.alliedmods.net/showpo...&postcount=888 already contains the latest compiled version 1.1.1 for Windows and Linux
__________________

Last edited by Ja-Forces; 07-27-2022 at 05:24.
Ja-Forces is offline
MrGarfield
Senior Member
Join Date: Feb 2013
Old 01-14-2020 , 11:34   Re: Connect Announce
Reply With Quote #903

thank you very much Slaven555 it works great, thank you also Ja-Forces for taking the time to answer me good evening

Quote:
What do you see in the log folder? Errors? Some more info?
no in my journal no error but hey it works thank you

Last edited by MrGarfield; 01-14-2020 at 11:35.
MrGarfield is offline
flashing
Senior Member
Join Date: Jul 2019
Location: India
Old 01-19-2020 , 09:44   Re: Connect Announce
Reply With Quote #904

how can i add a prefix for chat before the message
flashing is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-19-2020 , 11:26   Re: Connect Announce
Reply With Quote #905

Search for all "PrintToChat" and "PrintToChatAll" in the sourcecode, add a prefix before the "%s" part, then recompile.

e.g.: Line 177

from
Code:
PrintToChatAll("%s", message);
to
Code:
PrintToChatAll("[SM] %s", message);
__________________

Last edited by Marttt; 01-19-2020 at 11:27.
Marttt is offline
flashing
Senior Member
Join Date: Jul 2019
Location: India
Old 01-19-2020 , 11:52   Re: Connect Announce
Reply With Quote #906

Quote:
Originally Posted by Marttt View Post
Search for all "PrintToChat" and "PrintToChatAll" in the sourcecode, add a prefix before the "%s" part, then recompile.

e.g.: Line 177

from
Code:
PrintToChatAll("%s", message);
to
Code:
PrintToChatAll("[SM] %s", message);
Thank you
flashing is offline
kochifish
Junior Member
Join Date: Feb 2016
Old 04-09-2020 , 05:44   Re: Connect Announce
Reply With Quote #907

Hello, i have this problem, and i cant solve this, any idea why this is happening? There is no disconnect reason...


Player xxxx(STEAM_1:0xxx) from country Philippines disconnected reason:

SourceMod Version: 1.10.0.6478
SourcePawn Engine: 1.10.0.6478, jit-x86 (build 1.10.0.647
SourcePawn API: v1 = 5, v2 = 12
Compiled on: Mar 5 2020 109:04
Built from: https://github.com/alliedmodders/sou...commit/a8b9da9
Build ID: 6478:a8b9da9

Metamod:Source version 1.10.7-dev
Built from: https://github.com/alliedmodders/met...commit/6c8495f
Build ID: 971:6c8495f
Loaded As: Valve Server Plugin
Compiled on: Sep 2 2019
Plugin interface version: 15:14
SourceHook version: 5:5


Thank you!

Last edited by kochifish; 04-09-2020 at 05:46.
kochifish is offline
CosmicD
Senior Member
Join Date: Dec 2009
Location: Hasselt, Belgium
Old 04-19-2020 , 07:12   Re: Connect Announce
Reply With Quote #908

I'm trying to run an updated version of this on my l4d1 server however I run in various adjacent problems when doing so. First of all, tried to compile the latest available source of 1.8.2 on sm 1.9 but still it throws the missing debug string error that I have when compiling on 1.10.. how can this be resolved ? (is it even safe to upgrade to sourcemod 1.10, will all older plugins that I like to use work ?)

Also, when i update to geoip2, i can't seem to run it as the databases can't be found anymore in any conventional ways. So i'm kinda forced to use the legacy version that will always throw the ignore retvals error when a steam user is banned.
__________________

Last edited by CosmicD; 04-19-2020 at 09:19.
CosmicD is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 04-23-2020 , 16:51   Re: Connect Announce
Reply With Quote #909

How can I hide admin connection messages entirely?
I tried this below and restarted my server but it didn't seem to do anything. I had also tried to delete the admin section.

Code:
"CountryShow"
{
	"messages"
	{
		"playerjoin"		"{PLAYERTYPE} {GREEN}{PLAYERNAME} {DEFAULT}<{LIGHTGREEN}{STEAMID}{DEFAULT}> connected from country {GREEN}{PLAYERCOUNTRY} {DEFAULT}({LIGHTGREEN}{PLAYERCOUNTRYSHORT}{DEFAULT})"
		"playerdisc"		"{PLAYERTYPE} {GREEN}{PLAYERNAME} {DEFAULT}<{LIGHTGREEN}{STEAMID}{DEFAULT}> from country {GREEN}{PLAYERCOUNTRY} {DEFAULT}({LIGHTGREEN}{PLAYERCOUNTRYSHORT}{DEFAULT}) disconnected {GREEN}reason: {DEFAULT}{DISC_REASON}"
	}
	"messages_admin"
        {
              "playerjoin"        ""
              "playerdisc"        ""
        }
}

Last edited by Sreaper; 04-23-2020 at 16:52.
Sreaper is offline
Ja-Forces
Senior Member
Join Date: Jul 2009
Location: Leningrad
Old 04-25-2020 , 03:55   Re: Connect Announce
Reply With Quote #910

Just edit the section "CA Admin" in the file cannounce.phrases.txt
__________________

Last edited by Ja-Forces; 04-26-2020 at 11:19.
Ja-Forces is offline
Reply



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 09:42.


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