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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Herokim
Senior Member
Join Date: Mar 2010
Location: In Fag-o-land
Old 10-31-2010 , 19:05   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #41

Found a way to show your country when playing on same machine as the server is.

1.Start the server
2.If you use wireless internet, like LinkSys, restart your connection. BUT NOT THE MODEM/ROUTER. Just disconnect and connect again. This will set you new IP. You should have dynamic IP. Server public IP will stay the same.
3.Connect to your server!
4.???
5.PROFIT!
Herokim is offline
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 11-16-2010 , 22:34   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #42

Any clue?

L 11/17/2010 - 01:26:25: [SM] Plugin encountered error 15: Array index is out of bounds
L 11/17/2010 - 01:26:25: [SM] Displaying call stack trace for plugin "PlayerAddCountryTag - No Cities.smx":
L 11/17/2010 - 01:26:25: [SM] [0] Line 100, /home/groups/sourcemod/upload_tmp/phpr0DX1z.sp::OnClientPostAdminCheck()
Zbeer is offline
kiwi87
Member
Join Date: Sep 2009
Old 11-17-2010 , 14:26   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #43

Is there anyway to make Lobby(Listen Servers) reveal client's IP? Only dedicated servers allow... but I'm just wondering if anyone here knows of a command to show client's ip on listen servers.

ty.
kiwi87 is offline
Reveant
New Member
Join Date: Jan 2011
Old 01-03-2011 , 13:06   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #44

Should i worry about these errors?

Code:
L 01/03/2011 - 21:45:06: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/03/2011 - 21:45:06: [SM] Displaying call stack trace for plugin "PlayerAddCountryTag - No Cities.smx":
L 01/03/2011 - 21:45:06: [SM]   [0]  Line 100, PlayerAddCountryTag - No 
Cities.sp::OnClientPostAdminCheck()
Reveant is offline
kevinbrunet
Member
Join Date: Nov 2010
Old 01-08-2011 , 09:24   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #45

I fixed this problem :

Quote:
L 11/17/2010 - 01:26:25: [SM] Plugin encountered error 15: Array index is out of bounds
L 11/17/2010 - 01:26:25: [SM] Displaying call stack trace for plugin "PlayerAddCountryTag - No Cities.smx":
L 11/17/2010 - 01:26:25: [SM] [0] Line 100, /home/groups/sourcemod/upload_tmp/phpr0DX1z.sp::OnClientPostAdminCheck()
Attached Files
File Type: sp Get Plugin or Get Source (PlayerAddCountryTag - No Cities.sp - 769 views - 9.1 KB)

Last edited by kevinbrunet; 01-08-2011 at 10:07.
kevinbrunet is offline
el_psycho
Member
Join Date: Feb 2012
Location: Vancouver, Canada
Old 03-25-2012 , 04:41   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #46

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
Attached Files
File Type: sp Get Plugin or Get Source (PlayerAddCountryTag[LANsupport].sp - 380 views - 9.6 KB)

Last edited by el_psycho; 03-26-2012 at 01:03.
el_psycho is offline
cree
BANNED
Join Date: May 2013
Location: GB
Old 05-14-2013 , 09:34   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #47

hey where can i get the geolitecity zip database for this plugin??? i mean the download links r broken. does any1 still have this??
cree is offline
Send a message via ICQ to cree Send a message via AIM to cree Send a message via Yahoo to cree Send a message via Skype™ to cree
Simca
Senior Member
Join Date: Feb 2012
Old 08-06-2013 , 13:38   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #48

@el_psycho and @author
There is a bug when people join as spectators their country tag isn't attached. This happens in l4d2 not sure in other games.
Simca is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 10-19-2013 , 09:48   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #49

Is there a way to make it display 3 letter country tag
example
[GER]
[GRB]
[USA]
etc ?
If not thanks anyway love this plugin as it does not get in the way of players names

if i edit
Format( Tag, size, "%s", "---" );
and
Format( Tag, size, "%3s", Code );

in the .sp would it do as i wanted ? or am i miles off ?

Last edited by s.m.a.c head; 10-19-2013 at 10:08.
s.m.a.c head is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 10-19-2013 , 13:20   Re: [L4D2] Add Player Country to Name (Connections messages and admin indication)
Reply With Quote #50

http://docs.sourcemod.net/api/index....d=show&id=303&
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House 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 23:45.


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