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

CD Announcer v2.9 Country/City connect message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 10-22-2017 , 06:02   CD Announcer v2.9 Country/City connect message
Reply With Quote #1

Hello.
I have this: https://forums.alliedmods.net/showth...=59949&page=23 CD Announcer v2.9 Latest plugin. Can someone edit this plugin to show Country and Cities (GeoIPCity Extension) together? I know there are some other plugins, but I using this plugin because, it can hide Admin messages if they are joining in the server and other plugins can't hide...

// Shows Admins on connect/disconnect, 0= don't show, 1 = show (Def 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
cd_showadmins "0"

Last edited by r3v; 10-22-2017 at 08:16.
r3v is offline
The Team Ghost
Senior Member
Join Date: Jun 2016
Location: OnClientConnect(int ME)
Old 10-24-2017 , 04:14   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #2

Quote:
Originally Posted by r3v View Post
Hello.
I have this: https://forums.alliedmods.net/showth...=59949&page=23 CD Announcer v2.9 Latest plugin. Can someone edit this plugin to show Country and Cities (GeoIPCity Extension) together? I know there are some other plugins, but I using this plugin because, it can hide Admin messages if they are joining in the server and other plugins can't hide...

// Shows Admins on connect/disconnect, 0= don't show, 1 = show (Def 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
cd_showadmins "0"
I'll try and see what I can do for you when I get home alright.
__________________
- Steam
The Team Ghost is offline
The Team Ghost
Senior Member
Join Date: Jun 2016
Location: OnClientConnect(int ME)
Old 10-24-2017 , 06:42   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #3

I'm working on it but one problem is that it has translations I'll see what I can do about the translations if I can use the file from the original plugin or just make it in English.
Also I had to use Geoipcity extension to get the stuff that you want so when I give you the edited plugin you'll have to use that extension instead.
__________________
- Steam
The Team Ghost is offline
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 10-24-2017 , 08:20   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #4

Quote:
Originally Posted by The Team Ghost View Post
I'm working on it but one problem is that it has translations I'll see what I can do about the translations if I can use the file from the original plugin or just make it in English.
Also I had to use Geoipcity extension to get the stuff that you want so when I give you the edited plugin you'll have to use that extension instead.
Thank You! Yes, i uploaded in my CS:S and CS:GO server GeoIPCity extension with .dat file. You can make English version without translations if it's easier. And use sourcemod-1.6.4-git4625-windows compiler, because 1.7.3 or latest 1.8 version can't compile this plugin...
r3v is offline
The Team Ghost
Senior Member
Join Date: Jun 2016
Location: OnClientConnect(int ME)
Old 10-24-2017 , 11:28   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #5

Quote:
Originally Posted by r3v View Post
Thank You! Yes, i uploaded in my CS:S and CS:GO server GeoIPCity extension with .dat file. You can make English version without translations if it's easier. And use sourcemod-1.6.4-git4625-windows compiler, because 1.7.3 or latest 1.8 version can't compile this plugin...
Why can't they compile it, I managed to compile it just fine by doing a bit of debugging here and there.
Test it and tell me if it's working, I'm only a beginner and would love to help anyone who is in need as long as the task isn't too complicated.

Anyways here is the plugin, it won't compile on the network compiler so I'll include the .smx and .sp for those who want, I did some changes to the translations so it would be compatible don't forget to upload or it might not work. Don't forget to install the GeoipCity extension but it seems you already did that.
Also tell me if something isn't working!
Attached Files
File Type: smx cd_announcer++.smx (11.4 KB, 331 views)
File Type: sp Get Plugin or Get Source (cd_announcer++.sp - 334 views - 20.1 KB)
File Type: txt cdannouncer.phrases.txt (2.6 KB, 462 views)
__________________
- Steam

Last edited by The Team Ghost; 10-24-2017 at 11:30.
The Team Ghost is offline
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 10-24-2017 , 13:06   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #6

Thank You very much!!! I tested and it's working.
gamebreaker(STEAM_0:1:64037XXX) connected from Vilnius, Lithuania

but i have the error log then server starts... ( .sp compiled on SM1.8 )

PHP Code:
L 10/24/2017 19:32:45SourceMod error session started
L 10
/24/2017 19:32:45Info (map "de_dust2") (file "errors_20171024.log")
L 10/24/2017 19:32:45: [SMException reportedinvalid handle 0 (error4)
L 10/24/2017 19:32:45: [SMBlamingcd_announcer++.smx
L 10
/24/2017 19:32:45: [SMCall stack trace:
L 10/24/2017 19:32:45: [SM]   [0WriteFileLine
L 10
/24/2017 19:32:45: [SM]   [1Line 54D:\Servers\public\cstrike\addons\sourcemod\scripting\cd_announcer++.sp::OnMapStart
L 10
/24/2017 19:39:48Error log file session closed
PHP Code:
// This file was auto-generated by SourceMod (v1.8.0.6025)
// ConVars for plugin "cd_announcer++.smx"


// Connect/Disconnect Announcer Version
// -
// Default: "2.3.1"
cd_announcer_version "2.3.1"

// country name print type 1 = print shortname, 2 = print full name, (3 = country short with city), 4 = country long with city (Def 1)
// -
// Default: "1"
cd_country_type "4"

// location of the log file relative to the sourcemod folder
// -
// Default: "data/cd_logs.log"
cd_logfile "data/cd_logs.log"

// turns on and off logging of connects and disconnect to a log file 1= on  2 = on only log annoucers 0 = off (Def 1)
// -
// Default: "1"
cd_loggin "0"

// 1 = by SteamId, 2 = by Ip, 3 = ip and SteamId (Def 1)
// -
// Default: "1"
cd_mode "1"

// Country Print mode: 0 = off, 1 = country, 2 = country and city (Def 1)
// -
// Default: "1"
cd_printcountrycity "2"

// Shows Admins on connect/disconnect, 0= don't show, 1 = show (Def 1)
// -
// Default: "1"
cd_showadmins "1"

// 1 = show all(connects, and disconnects), 2 = show connects only, 3 = show disconnects only
// -
// Default: "1"
cd_showall "2"

// Toggles sound on and off (Def 1 = on)
// -
// Default: "1"
cd_sound "0"

// Sound file location to be played on a connect/disconnect under the sounds directory (Def =buttons/blip1.wav)
// -
// Default: "buttons/blip1.wav"
cd_sound_file "buttons/blip1.wav" 

Last edited by r3v; 10-24-2017 at 13:35.
r3v is offline
The Team Ghost
Senior Member
Join Date: Jun 2016
Location: OnClientConnect(int ME)
Old 10-24-2017 , 13:14   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #7

Can you give me the log file, also I think I'm gonna use this on my server too. And I think I might add color support and some small other things.
__________________
- Steam
The Team Ghost is offline
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 10-24-2017 , 13:18   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #8

Quote:
Originally Posted by The Team Ghost View Post
Can you give me the log file, also I think I'm gonna use this on my server too. And I think I might add color support and some small other things.
I only getting this error then i start the server (clean test server):
PHP Code:
L 10/24/2017 19:32:45SourceMod error session started
L 10
/24/2017 19:32:45Info (map "de_dust2") (file "errors_20171024.log")
L 10/24/2017 19:32:45: [SMException reportedinvalid handle 0 (error4)
L 10/24/2017 19:32:45: [SMBlamingcd_announcer++.smx
L 10
/24/2017 19:32:45: [SMCall stack trace:
L 10/24/2017 19:32:45: [SM]   [0WriteFileLine
L 10
/24/2017 19:32:45: [SM]   [1Line 54D:\Servers\public\cstrike\addons\sourcemod\scripting\cd_announcer++.sp::OnMapStart
L 10
/24/2017 19:39:48Error log file session closed
Attached Files
File Type: log errors_20171024.log (551 Bytes, 248 views)

Last edited by r3v; 10-24-2017 at 13:19.
r3v is offline
The Team Ghost
Senior Member
Join Date: Jun 2016
Location: OnClientConnect(int ME)
Old 10-24-2017 , 13:41   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #9

Quote:
Originally Posted by r3v View Post
Spoiler
Although this code wasn't mine I'll take a look at what I can, even thought I'm not the kind of person who likes logs.
Edit: Also I have edited 2 small mistakes I made in the translation file (I forgot to type a few commas)
And I have rewritten the line that was faulty I don't know if it'll fix it.
Attached Files
File Type: txt cdannouncer.phrases.txt (2.6 KB, 288 views)
File Type: smx cd_announcer++.smx (11.4 KB, 257 views)
__________________
- Steam

Last edited by The Team Ghost; 10-25-2017 at 05:55. Reason: EXTRA's you don't know 'bout
The Team Ghost is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 10-25-2017 , 04:20   Re: CD Announcer v2.9 Country/City connect message
Reply With Quote #10

Post source?
hmmmmm 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 19:30.


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