AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Visitor Counter v1.4 (https://forums.alliedmods.net/showthread.php?t=318105)

edon1337 08-14-2019 11:42

Visitor Counter v1.4
 
2 Attachment(s)

Description:
This plugin is intended to help you see whether your server is doing better or worse (talking of players number), by listing all people that visit your server and giving you an exact number of today's visitors. It logs players by SteamID, and the same SteamID won't be logged again if the date that it's logged is the same as today, although it will be allowed to be logged if it isn't.


Commands:
Code:

say /visitors
say_team /visitors

Configuration:
Code:

// Methods to display message <1=Chat|2=HUD|3=MOTD>
VC_METHOD = 3

// Should only admins be able to see <0=Everyone|1=Admins only>
VC_ADMINS_ONLY = 0

// Admin flag required to open the menu
VC_ADMIN_FLAG = b

// HUD color Red
VC_HUD_COLOR_R = 125

// HUD color Green
VC_HUD_COLOR_G = 0

// HUD color Blue
VC_HUD_COLOR_B = 125

// HUD X position
VC_HUD_POSITION_X = 0.40

// HUD Y position
VC_HUD_POSITION_Y = 0.40

// HUD duration
VC_HUD_DURATION = 5.0

// MOTD Message
VC_MOTD_MESSAGE = <body bgcolor="black"><center><img src="https://img.icons8.com/officel/2x/person-male.png"><br><font size="16" color="blue"><u>Visitor Counter</u></font><br><br><br><b></font><font color="orange"> %L</font></b></center>

// File to store SteamIDs
VC_SAVE_FILE = VisitorCounter.ini

Credits:
iceeedr - Brazilian Portuguese translation
OciXCrom - Bulgarian and Macedonian translation
Myself - Albanian translation
DevilBoy.eXe - Romanian translation

edon1337 08-14-2019 11:45

Re: Visitor Counter
 
ML Translation. Thanks to all the contributors.

PS: The number of visitors stands in-front of PEOPLE_VISIT_TODAY in-game. Look at the pictures in the main post to understand.
Code:

[en]
PEOPLE_VISIT_TODAY_SINGULAR = &x04[Visitor Counter] &x04%d &x01person has visited the server today!
PEOPLE_VISIT_TODAY_PLURAL = &x04[Visitor Counter] &x04%d &x01people have visited the server today!

YESTERDAY_VISITORS_SINGULAR = (&x04%d &x01visitor)
YESTERDAY_VISITORS_PLURAL = (&x04%d &x01visitors)

STATISTIC_RISE = &x01It shows a rise of &x04%.1f%% &x01compared to yesterday
STATISTIC_LOSS = &x01It shows a fall of &x04%.1f%% &x01compared to yesterday

NO_ACCESS = No access to this command!

Updated v1.1
Code:

- Added ML for singular and plural cases

OciXCrom 08-14-2019 13:46

Re: Visitor Counter v1.1
 
Haven't checked the code, but if you haven't, you should save the number of players for each day to allow for a more detailed comparison.

You could also use a website that can display a chart/graph, if you can find one that creates the chart based on info you put in the link itself, and then display it in a MOTD.

edon1337 08-14-2019 14:07

Re: Visitor Counter v1.1
 
Quote:

Originally Posted by OciXCrom (Post 2663232)
Haven't checked the code, but if you haven't, you should save the number of players for each day to allow for a more detailed comparison.

You could also use a website that can display a chart/graph, if you can find one that creates the chart based on info you put in the link itself, and then display it in a MOTD.

The way I'm logging is:
Code:

MM/DD/YYYY = STEAM_ID
So I can easily manipulate with it, right now I'm making a detailed 'rise/loss' of players kinda thingy.

edon1337 08-14-2019 15:52

Re: Visitor Counter v1.2
 
Update v1.2
Code:

- Added percentages comparing today's visitors to yesterday's

DON KHAN 1 08-14-2019 15:56

Re: Visitor Counter v1.2
 
Nice Work & Plugin Too.

Love Your Work

Here Is The Translation Of EN Lang To RO

Romanian:

Code:

[ro]
PEOPLE_VISIT_TODAY_SINGULAR = &x04[Visitor Counter] &x04%d &x01 Persoana A Vizitat Serverul Astazi!
PEOPLE_VISIT_TODAY_PLURAL = &x04[Visitor Counter] &x04%d &x01 Oamenii Au Vizitat Astazi Serverul!

PEOPLE_VISIT_TODAY_SINGULAR = %d Persoana A Vizitat Serverul Astazi!
PEOPLE_VISIT_TODAY_PLURAL = %d Oamenii Au Vizitat Astazi Serverul!

YESTERDAY_VISITORS_SINGULAR_CHAT = (&x04%d &x01 Vizitator)
YESTERDAY_VISITORS_PLURAL_CHAT = (&x04%d &x01 Vizitator)

YESTERDAY_VISITORS_SINGULAR = (%d Vizitator)
YESTERDAY_VISITORS_PLURAL = (%d Vizitator)

STATISTIC_RISE_CHAT = &x01Prezinta o crestere a &x04%.1f%% &x01comparativ cu ieri
STATISTIC_LOSS_CHAT = &x01Prezinta o cadere a &x04%.1f%% &x01comparativ cu ieri

STATISTIC_RISE = Prezinta o crestere a %.1f%% comparativ cu ieri
STATISTIC_LOSS = Prezinta o cadere a %.1f%% comparativ cu ieri
NO_ACCESS = Nu Access La Comanda!


edon1337 08-14-2019 16:24

Re: Visitor Counter v1.2
 
Quote:

Originally Posted by DON KHAN 1 (Post 2663254)
Nice Work & Plugin Too.

Love Your Work

Here Is The Translation Of EN Lang To RO

Romanian:

Code:

[ro]
PEOPLE_VISIT_TODAY_SINGULAR = &x04[Visitor Counter] &x04%d &x01 Persoana A Vizitat Serverul Astazi!
PEOPLE_VISIT_TODAY_PLURAL = &x04[Visitor Counter] &x04%d &x01 Oamenii Au Vizitat Astazi Serverul!

PEOPLE_VISIT_TODAY_SINGULAR = %d Persoana A Vizitat Serverul Astazi!
PEOPLE_VISIT_TODAY_PLURAL = %d Oamenii Au Vizitat Astazi Serverul!

YESTERDAY_VISITORS_SINGULAR_CHAT = (&x04%d &x01 Vizitator)
YESTERDAY_VISITORS_PLURAL_CHAT = (&x04%d &x01 Vizitator)

YESTERDAY_VISITORS_SINGULAR = (%d Vizitator)
YESTERDAY_VISITORS_PLURAL = (%d Vizitator)

STATISTIC_RISE_CHAT = &x01Prezinta o crestere a &x04%.1f%% &x01comparativ cu ieri
STATISTIC_LOSS_CHAT = &x01Prezinta o cadere a &x04%.1f%% &x01comparativ cu ieri

STATISTIC_RISE = Prezinta o crestere a %.1f%% comparativ cu ieri
STATISTIC_LOSS = Prezinta o cadere a %.1f%% comparativ cu ieri
NO_ACCESS = Nu Access La Comanda!


Thank you.

DON KHAN 1 08-14-2019 16:31

Re: Visitor Counter v1.2
 
Suggestion: Can you add website feature as Oxicrom said? It will be more awesome for us like amxbans it puts the player name ip and ban time on website? Can you also do this that it shows the player name in website visited on server.

thank you

edon1337 08-14-2019 16:32

Re: Visitor Counter v1.2
 
Quote:

Originally Posted by DON KHAN 1 (Post 2663259)
Suggestion: Can you add website feature as Oxicrom said? It will be more awesome for us like amxbans it puts the player name ip and ban time on website? Can you also do this that it shows the player name in website visited on server.

thank you

What OciXCrom meant was a web-site that creates charts, not a database.

DON KHAN 1 08-14-2019 16:40

Re: Visitor Counter v1.2
 
Quote:

Originally Posted by edon1337 (Post 2663261)
What OciXCrom meant was a web-site that creates charts, not a database.

oh k i didn't read it carefully.. well leave it.

here is translation of Russian lang

Code:

[ru]
PEOPLE_VISIT_TODAY_SINGULAR_CHAT = &x04[Счетчик посетителей] &x04%d &x01человек посетил сервер сегодня!
PEOPLE_VISIT_TODAY_PLURAL_CHAT = &x04[Счетчик посетителей] &x04%d &x01люди посетили сервер сегодня!

PEOPLE_VISIT_TODAY_SINGULAR = %d человек посетил сервер сегодня!
PEOPLE_VISIT_TODAY_PLURAL = %d люди посетили сервер сегодня!

YESTERDAY_VISITORS_SINGULAR_CHAT = (&x04%d &x01посетитель)
YESTERDAY_VISITORS_PLURAL_CHAT = (&x04%d &x01посетители)

YESTERDAY_VISITORS_SINGULAR = (%d посетитель)
YESTERDAY_VISITORS_PLURAL = (%d посетители)

STATISTIC_RISE_CHAT = &x01Это показывает рост &x04%.1f%% &x01по сравнению со вчерашним днем
STATISTIC_LOSS_CHAT = &x01Это показывает падение &x04%.1f%% &x01по сравнению со вчерашним днем

STATISTIC_RISE = Это показывает рост %.1f%% по сравнению со вчерашним днем
STATISTIC_LOSS = Это показывает падение %.1f%% по сравнению со вчерашним днем

NO_ACCESS = Нет доступа к этой команде!

can i get credit in translator? cuz it will be my first time that somebody will give me credits :D


All times are GMT -4. The time now is 15:27.

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