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

Country Nick Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
KALASH NICOLE
Member
Join Date: Feb 2016
Old 08-10-2016 , 13:43   Re: Country Nick Plugin
Reply With Quote #121

I confirm, the country tag is correctly added to the new players nickname when they join the server, but it does not show anymore for them after map change (tested with Insurgency 2014).

Last edited by KALASH NICOLE; 08-10-2016 at 14:15.
KALASH NICOLE is offline
JyrmaSika
New Member
Join Date: Jan 2017
Old 01-20-2017 , 10:58   Re: Country Nick Plugin (fixed)
Reply With Quote #122

The plugin was malfunctioning on my servers. Sometimes it didn't add country code prefix - the function SetClientInfo was called everytime, but it didn't change the name.

I fixed it by replacing function SetClientInfo(client, "name", newname); with SetClientName(client, newname);
JyrmaSika is offline
KALASH NICOLE
Member
Join Date: Feb 2016
Old 01-20-2017 , 17:27   Re: Country Nick Plugin
Reply With Quote #123

how can i disable this chat message : "Player X changed name to [Country]Player X" ?


there is this line in the .sp

return Plugin_Handled; // avoid printing the change to the chat


but the message is still being printed in the chat.

Last edited by KALASH NICOLE; 01-20-2017 at 17:32.
KALASH NICOLE is offline
KALASH NICOLE
Member
Join Date: Feb 2016
Old 01-20-2017 , 17:29   Re: Country Nick Plugin (fixed)
Reply With Quote #124

Quote:
Originally Posted by JyrmaSika View Post
The plugin was malfunctioning on my servers. Sometimes it didn't add country code prefix - the function SetClientInfo was called everytime, but it didn't change the name.

I fixed it by replacing function SetClientInfo(client, "name", newname); with SetClientName(client, newname);
i tried this change, but the country tags still doesn't stay after map change for players already connected.

Last edited by KALASH NICOLE; 01-25-2017 at 07:13.
KALASH NICOLE is offline
JyrmaSika
New Member
Join Date: Jan 2017
Old 02-16-2017 , 12:11   Re: Country Nick Plugin
Reply With Quote #125

Hmm.. I made other changes as well. I also added OnPlayerConnect and other functions to make sure that the country code will be added to the nick.

I'll post the code and compiled plugin later.
JyrmaSika is offline
JyrmaSika
New Member
Join Date: Jan 2017
Old 03-08-2017 , 09:26   Re: Country Nick Plugin
Reply With Quote #126

Here's the fixed/forked version of country nick plugin.
Attached Files
File Type: sp Get Plugin or Get Source (countrycode.sp - 505 views - 2.3 KB)

Last edited by JyrmaSika; 03-09-2017 at 10:52.
JyrmaSika is offline
taran
New Member
Join Date: Mar 2017
Old 03-27-2017 , 05:00   Re: Country Nick Plugin 1.2 [2016/04/16]
Reply With Quote #127

Quote:
Originally Posted by Grey83 View Post
Changes:
  • fixed bug with double flag in the player name
  • added
    • cvar sm_countrynick_msg for switching On/Off announcement connecting of a players (and error logging)
    • cvar sm_countrynick_tagsize to set tag size (2 or 3 letters)
    • autocreate cfg-file countrynick.cfg

How would you change the code to show the counrty at the end of the steam name

so instead of [GB]nomis to nomis[GB]
taran is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-27-2017 , 09:41   Re: Country Nick Plugin
Reply With Quote #128

taran, in the end of plugin code string Format(sName, 69, "%s%s", flag, sName); change to Format(sName, 69, "%s%s", sName, flag);
__________________

Last edited by Grey83; 03-27-2017 at 09:41.
Grey83 is offline
taran
New Member
Join Date: Mar 2017
Old 03-28-2017 , 10:42   Re: Country Nick Plugin
Reply With Quote #129

Thx Grey83

so next question, since you have so kind.

How would you annonce the user, as they connect.

so taran (GBR) has connected, but not change their name in the stats so it stays the same?
taran is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-29-2017 , 02:31   Re: Country Nick Plugin
Reply With Quote #130

taran, if stats use steam_id for identification of players, than it stays the same.
If stats use names, than it not stays the same/
__________________
Grey83 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 08:43.


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