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

Country Nick Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
sparkie951
Member
Join Date: Jul 2014
Old 07-27-2015 , 11:39   Re: Country Nick Plugin
Reply With Quote #101

Quote:
Originally Posted by jetsam View Post
server win or linux?

addons/sourcemod/gamedata/sdktools.games/engine.insurgency.txt:
SetUserCvar win:20 (linux:67)
SetClientName win:19 (linux:66)

i chg offset to 21 & 20 and work (win.server) may be for linux server similarly (+1)?

* and tmp set ( "DisableAutoUpdate" "yes") in addons/sourcemod/configs/core.cfg
Windows 7. I will try to see if it works a little later. Thanks..
sparkie951 is offline
mikma
Junior Member
Join Date: Apr 2015
Old 07-27-2015 , 12:31   Re: Country Nick Plugin
Reply With Quote #102

Quote:
Originally Posted by jetsam View Post
server win or linux?

addons/sourcemod/gamedata/sdktools.games/engine.insurgency.txt:
SetUserCvar win:20 (linux:67)
SetClientName win:19 (linux:66)

i chg offset to 21 & 20 and work (win.server) may be for linux server similarly (+1)?

* and tmp set ( "DisableAutoUpdate" "yes") in addons/sourcemod/configs/core.cfg
Linux, and this did not work. I changed the windows and linux numbers +1. Still the same issue.
mikma is offline
jetsam
Junior Member
Join Date: Oct 2009
Location: Russia, Moscow
Old 07-27-2015 , 12:55   Re: Country Nick Plugin
Reply With Quote #103

i tested only rename bot (via SetClientInfo as in plugin):
hostname: version : 1.8.9.8/1898 6104 secure udp/ip : :27015 os : Windows type : community dedicated # userid name uniqueid connected ping loss state rate adr #208 "Jennifer Psaki" BOT active
#209 "Bill Clinton" BOT active
#205 "Jimmy Carter" BOT active
#194 "Петро Порошенко" BOT active
#206 "Віктор Янукович" BOT active
#195 "Silvio Berlusconi" BOT active
#196 "François Hollande" BOT active
#197 "Hugo Chávez" BOT active
#198 "Angela Merkel" BOT active
#199 "Mao" BOT active
rename worked well

with old 20/19
hostname: Insurgency
version : 1.8.9.8/1898 6104 insecure
os : Windows
type : community dedicated
players : 0 humans, 5 bots (6/0 max) (hibernating)

# userid name uniqueid connected ping loss state rate adr
# 2 "name" BOT active
# 3 "(1)name" BOT active
# 4 "(2)name" BOT active
# 5 "(3)name" BOT active
# 6 "(4)name" BOT active

Last edited by jetsam; 07-27-2015 at 12:57.
jetsam is offline
jetsam
Junior Member
Join Date: Oct 2009
Location: Russia, Moscow
Old 07-29-2015 , 07:34   gamedata update at dev
Reply With Quote #104

win: 1.7.3-git5229.zip (http://www.sourcemod.net/snapshots.php)
/*
Comments

Update Insurgency gamedata.
Changed files


  • gamedata/sdktools.games/engine.insurgency.txt
*/
engine.insurgency.txt:
"SetUserCvar"
{
"windows" "21" (was 20)
"linux" "68" (was 67)
"mac" "68"(was 67)
}
"SetClientName"
{
"windows" "20" (was 19)
"linux" "67" (was 66)
"mac" "67"(was 66)
}
** I said before (add +1), but no one listened to me
jetsam is offline
mikma
Junior Member
Join Date: Apr 2015
Old 07-29-2015 , 15:29   Re: gamedata update at dev
Reply With Quote #105

Quote:
Originally Posted by jetsam View Post
** I said before (add +1), but no one listened to me
Linux: Latest snapshot of Metamod (1.11.0-git985.tar.gz) and Sourcemod (1.8.0-git5532.tar.gz)

gamedata/sdktools.games/engine.insurgency.txt: added +1 to all values as mentioned once before.
config/core.cfg: "DisableAutoUpdate" "yes"
countrynick.smx loaded after, because the server was started without it.

rcon status: (the 'name' is me.)

# userid name uniqueid connected ping loss state rate adr
# 1398 1 "Strealer" STEAM_1:1:1234567 1:28:21 44 0 active 80000 111.222.333.444:27005
# 1582 2 "name" STEAM_1:0:1234567 00:46 27 0 active 80000 111.222.333.444:27005
# 1474 3 "k?" STEAM_1:1:1234567 500 106 0 active 80000 111.222.333.444:27005
# 1460 4 "Goose" STEAM_1:1:1234567 58:47 110 0 active 80000 111.222.333.444:27005

Last edited by mikma; 07-29-2015 at 15:29.
mikma is offline
jetsam
Junior Member
Join Date: Oct 2009
Location: Russia, Moscow
Old 07-30-2015 , 02:24   Re: gamedata update at dev
Reply With Quote #106

Quote:
Originally Posted by mikma View Post
Linux: Latest snapshot of Metamod (1.11.0-git985.tar.gz) and Sourcemod (1.8.0-git5532.tar.gz)
SourceMod Version: 1.7.3-dev+5216 (+gamedata new)
Metamod:Source version 1.10.5
win
smx autoloaded at start server
version : 1.9.0.0/1900 6104 secure
os : Windows
type : community dedicated


# userid name uniqueid connected ping loss state rate adr
# 14 7 "[--][729] jetsam" STEAM_1:1:10872569 01:20 11 0 active 80000 192.168.x.x:27005
#end
local connect renamed well ("if the country is unknown, [--]nickname" page 1 post)

via external:

# userid name uniqueid connected ping loss state rate adr
# 15 1 "[RU][729] jetsam" STEAM_1:1:10872569 00:51 15 0 active 80000 188.244.35.158:27005

* 21/20(win) offset worked well.

** i test only local 1.11/1.8
Metamod:Source version 1.11.0-dev+985
SourceMod 1.8.0-dev+5532
os : Windows
type : community dedicated

# userid name uniqueid connected ping loss state rate
# 7 6 "[--][729] jetsam" STEAM_1:1:10872569 01:04 31 0 active 80000

win ver *1.10/1.7 & 1.11/1.8 worked well.

*** i write small test - if nick renamed - that SetClientInfo worked well and and the problem in another, if not worked - that linux offset not +1
rename as admincmd, example:test_setclientinfo "this test for ren" - nick ren to this test for ren
Attached Files
File Type: sp Get Plugin or Get Source (test_setclientinfo.sp - 843 views - 781 Bytes)

Last edited by jetsam; 07-30-2015 at 05:07. Reason: add external info
jetsam is offline
mikma
Junior Member
Join Date: Apr 2015
Old 08-02-2015 , 11:52   Re: Country Nick Plugin
Reply With Quote #107

Ok, latest tests and got this script working again.

1) Shutdown server
2) Latest MM + SM snapshots
3) Edited engine.insurgency.txt:
Code:
                        "SetUserCvar"
                        {
                                // Changed, was Win 20, Linux 67 and Mac 67
                                // - mikma
                                "windows"       "21"
                                "linux"         "68"
                                "mac"           "68"
                        }

                        "SetClientName"
                        {
                                // Changed, was Win 19, Linux 66 and Mac 66
                                // - mikma
                                "windows"       "20"
                                "linux"         "67"
                                "mac"           "67"
                        }
4) Made sure countrynick.smx is in loaded list
5) Start server
6) Login, name was changed to [FI]mikma.
mikma is offline
ijam_j
Member
Join Date: Mar 2007
Old 10-22-2015 , 21:17   Re: Country Nick Plugin
Reply With Quote #108

could somebody make a space between country flag and nickname? by adding space in like in the code below
Quote:
getFlagOfPlayer(client, String:flag[], size)
{
.
.
.
if(GeoipCode2(ip, code2))
{
Format(flag, size, "[%2s] ", code2); //<- add space here
return true;
}
else
{
Format(flag, size, "[--] "); //<- add space here
return false;
}
}
so that player nick would be

[US] MyNick

instead of

[US]MyNick

thanks.
ijam_j is offline
utaker
Senior Member
Join Date: Dec 2013
Old 10-27-2015 , 11:44   Re: Country Nick Plugin
Reply With Quote #109

i dont want join message and only other features, how to disable join country annoucement
utaker is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 04-16-2016 , 09:24   Country Nick Plugin 1.2 [2016/04/16]
Reply With Quote #110

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
Attached Files
File Type: sp Get Plugin or Get Source (countrynick 1.2.sp - 1135 views - 3.8 KB)
__________________
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 09:18.


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