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

[L4D2] Add Player Country to Name (Connections messages and admin indication)


Post New Thread Reply   
 
Thread Tools Display Modes
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 10-22-2013 , 04:38   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #51

Quote:
Originally Posted by Dr. Greg House View Post
OK THANKS changed a bit of code and now i have 3 letter country tags thanks to you ;)
s.m.a.c head is offline
winged_box
Senior Member
Join Date: Aug 2013
Location: Singapore
Old 11-15-2013 , 13:52   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #52

Quote:
Originally Posted by el_psycho View Post
Hi, I added two new features to this plugin. (THIS IS THE NO CITIES VERSION)
Changes i made:
- changed the version from 2.5.0 to 2.5.0-1e to differentiate it.
- added a cvar to choose your country tag if you are connecting to a server in your LAN or localhost.
- added a cvar to show a chat message when a player changes his name. No loop issues here, it works great (yay!)

This will work for any LAN or local IP starting with a 192, 172, 127 or 10. All previous functionality is also still there.

If you already have a PlayerAddCountryTag.cfg file just add these two cvars there:
PACT_LANcountry "--" //Country code (UK, US, CA, etc.) for LAN computers. Two characters max.
PACT_ChangeName "1" //Broadcast a chat message when a player changes his name. 0=off, 1=on

Let me know if everything is ok
I can't compile the file, got error: fatal error 120. cannot read from files "colours"

Last edited by winged_box; 11-15-2013 at 13:53.
winged_box is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 12-20-2013 , 12:36   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #53

Quote:
Originally Posted by winged_box View Post
I can't compile the file, got error: fatal error 120. cannot read from files "colours"
Would have answered more quickly if id have subscribed to this thread.

You need to compile locally make a copy of sourcemod to say your desktop
You also need the colors.inc file in the \sourcemod\scripting\include folder.
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK

Last edited by Munch; 12-20-2013 at 12:38.
Munch is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 12-17-2014 , 21:43   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #54

Dose any body got the GeoLiteCity.sq3 can you please post it?
Thanks
Krufftys Killers is online now
winged_box
Senior Member
Join Date: Aug 2013
Location: Singapore
Old 02-04-2015 , 23:28   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #55

Anybody not able to connect to your server and received a message 'Please change your name'?

My nick in game with this plugin : YourMADjesty[--]

Not sure why I got this error after installing this plugin.

Last edited by winged_box; 02-05-2015 at 01:49.
winged_box is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 02-06-2015 , 00:52   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #56

The string 'Please change your name' doesn't appear in the sp
This plugin cant be the cause.
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK
Munch is offline
winged_box
Senior Member
Join Date: Aug 2013
Location: Singapore
Old 02-06-2015 , 12:43   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #57

Quote:
Originally Posted by Munch View Post
The string 'Please change your name' doesn't appear in the sp
This plugin cant be the cause.
The other forum mention it is due to the SMAC KAC plugin, that plugin only accept characters and numeric.

I still got that message even after I removed the smac_kac_banlist plugin, but it's alright now as I used another player joining plugin instead.

Need sometime to figure out how to tackle this issue.

Last edited by winged_box; 02-06-2015 at 12:45.
winged_box is offline
NeoTM
AlliedModders Donor
Join Date: Feb 2013
Location: Britain
Old 08-10-2015 , 21:25   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #58

the link to get GeoLiteCity.sq3 seems to be broken.

Is there a way to have it elsewhere?
__________________
82.66.75.218:27015 - Walk In Dead Nightmare
82.66.75.218:27016 - Walk In Dead Rampage
82.66.75.218:27017 - Walk In Dead Vanilla
NeoTM is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 09-23-2019 , 09:41   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #59

* Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.
Attached Files
File Type: sp Get Plugin or Get Source (PlayerAddCountryTag[LANsupport].sp - 266 views - 9.3 KB)
File Type: inc colors.inc (25.4 KB, 201 views)
BloodyBlade is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-14-2020 , 09:48   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #60

v2.5.0-1h
  • Based on el_psycho version here.
  • New syntax by BloodyBlade here.
  • SM1.11 admin check fix by Foxhound here.
Attached Files
File Type: sp Get Plugin or Get Source (PlayerAddCountryTag[LANsupport].sp - 281 views - 9.9 KB)
File Type: inc geoip.inc (3.3 KB, 274 views)
File Type: inc regex.inc (12.0 KB, 350 views)
File Type: inc colors.inc (12.3 KB, 217 views)
__________________

Last edited by Marttt; 10-14-2020 at 10:12.
Marttt 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 10:20.


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