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

Visitor Counter v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical       
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2019 , 11:42   Visitor Counter v1.4
Reply With Quote #1


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.

Chat


HUD


MOTD

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
Attached Files
File Type: zip VisitorCounter v1.4.zip (8.8 KB, 403 views)
File Type: txt visitor_counter.txt (3.1 KB, 383 views)
__________________

Last edited by edon1337; 08-25-2019 at 12:17. Reason: update v1.4
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2019 , 11:45   Re: Visitor Counter
Reply With Quote #2

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
__________________

Last edited by edon1337; 08-17-2019 at 10:55.
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-14-2019 , 13:46   Re: Visitor Counter v1.1
Reply With Quote #3

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.
__________________

Last edited by OciXCrom; 08-14-2019 at 13:46.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2019 , 14:07   Re: Visitor Counter v1.1
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
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.
__________________

Last edited by edon1337; 08-14-2019 at 14:34.
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2019 , 15:52   Re: Visitor Counter v1.2
Reply With Quote #5

Update v1.2
Code:
- Added percentages comparing today's visitors to yesterday's
__________________
edon1337 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-14-2019 , 15:56   Re: Visitor Counter v1.2
Reply With Quote #6

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!
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 08-14-2019 at 16:11. Reason: Edon Updated Lang File So Updating Translation Too
DON KHAN 1 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2019 , 16:24   Re: Visitor Counter v1.2
Reply With Quote #7

Quote:
Originally Posted by DON KHAN 1 View Post
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.
__________________
edon1337 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-14-2019 , 16:31   Re: Visitor Counter v1.2
Reply With Quote #8

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
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2019 , 16:32   Re: Visitor Counter v1.2
Reply With Quote #9

Quote:
Originally Posted by DON KHAN 1 View Post
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.
__________________
edon1337 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-14-2019 , 16:40   Re: Visitor Counter v1.2
Reply With Quote #10

Quote:
Originally Posted by edon1337 View Post
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
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
Reply


Thread Tools
Display Modes

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 11:56.


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