AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Player Activity (https://forums.alliedmods.net/showthread.php?t=321934)

Relaxing 03-08-2020 00:24

Player Activity
 
Player Activity saves player's total playtime on a database for statistical purposes.

Commands:
say /activity - displays current playtime and all time activity
amx_activity - shows current players' activity, [steamid] for search (flag: m) - displays all current players' all time activity


Cvar:
activity_search_limit - default '500'
Modifies the search limit. If you wish to remove the limit set the cvar to '0'


API:
_get_user_time(id) - return player's all time activity
_get_user_time_timestamp(id) - return player's last seen

* Plugin uses nVault Utility by bugsy
https://forums.alliedmods.net/showthread.php?t=139584

* Player Activity available on GitHub:
https://github.com/CrXane/PlayerActivity

OciXCrom 03-08-2020 14:19

Re: Player Activity
 
Why the crx_ prefix tho. :|

HamletEagle 04-07-2020 11:36

Re: Player Activity
 
https://forums.alliedmods.net/showthread.php?p=457071
https://forums.alliedmods.net/showthread.php?t=201869

Unapproved. If you add more features let me know.

Relaxing 06-21-2020 20:27

Re: Player Activity
 
Added a search option for amx_activity command.
If you call the command without arguments it will print current players' total playtime.
Adding an argument will search for a specific player. If there's no specific player matching the argument, the function finds the best matches and displays their total playtime and their last seen online.
To prevent the plugin breaking, the maximum of results is 500. You can edit the limit at the source code.
https://i.ibb.co/YLWn8KH/image.png

Napoleon_be 06-22-2020 06:24

Re: Player Activity
 
Quote:

Originally Posted by Relaxing (Post 2706776)
To prevent the plugin breaking, the maximum of results is 500. You can edit the limit at the source code.

Why not make it customizable? Shouldn't take a lot of time.

Relaxing 07-10-2020 13:05

Re: Player Activity
 
Added a cvar and removed the static value of search limit as requested by Napoleon_be
Cvar: activity_search_limit - on default is set to '500' but if you can remove this limit by setting the cvar to '0'


All times are GMT -4. The time now is 21:50.

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