AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Country Nick Plugin (https://forums.alliedmods.net/showthread.php?t=83178)

sparkie951 07-27-2015 11:39

Re: Country Nick Plugin
 
Quote:

Originally Posted by jetsam (Post 2324912)
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..

mikma 07-27-2015 12:31

Re: Country Nick Plugin
 
Quote:

Originally Posted by jetsam (Post 2324912)
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.

jetsam 07-27-2015 12:55

Re: Country Nick Plugin
 
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

jetsam 07-29-2015 07:34

gamedata update at dev
 
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

mikma 07-29-2015 15:29

Re: gamedata update at dev
 
Quote:

Originally Posted by jetsam (Post 2325867)
** 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 50:30 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

jetsam 07-30-2015 02:24

Re: gamedata update at dev
 
1 Attachment(s)
Quote:

Originally Posted by mikma (Post 2326039)
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

mikma 08-02-2015 11:52

Re: Country Nick Plugin
 
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.

ijam_j 10-22-2015 21:17

Re: Country Nick Plugin
 
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.

utaker 10-27-2015 11:44

Re: Country Nick Plugin
 
i dont want join message and only other features, how to disable join country annoucement

Grey83 04-16-2016 09:24

Country Nick Plugin 1.2 [2016/04/16]
 
1 Attachment(s)
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


All times are GMT -4. The time now is 11:44.

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