Thread: Played Time
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-26-2007 , 09:58   Played Time
Reply With Quote #1

Played Time v1.3
[IMG]http://img183.**************/img183/7858/playedtimems6.png[/IMG]

Author: Alka;
Version: v1.3;
  • Description:
-With this plugin players can know how much they stay on a server & current time with one command.
-The thime can show in HUD or in chat message controled by Cvar.
-In message is show the "current played time","total played" time and current-time.
-Admins can know played time of a player.
-Played time is shown in minutes.
-The time is store in "data/Vault folder" and when the player connects his total played time is loaded!(New and Improved).
-Original plugin use IP to store vaultdata.If you want to use Authid just use "played_time_authid"!
-Have a Prune function to delete vaultdata old than "x" time.
-Top15 for TotalPlayedTime.(*Only for online players).
(Note:TotalPlayedTime is show in Chat and admin command.)
  • Cvars:
amx_pt_mod (Default 1) -Message type(0=Plugin Off , 1=Chat, 2=Hud)
  • Admin command:
amx_playedtime "#name" - See (total)played time of a player.
  • Player command:
!ptime - See (total)played time & current time.
/pttop15 - Top15 for TotalPlayedTime.( * )
  • Changelog:
v1.0
-First release.
-Code optimized by arkshine.
v1.1
-Now plugin use nvault to store total played time.
-Fixed chat bug.
v1.2
-Changed Vault functions to nVault(nvault are faster so it shouldn't make any lag at all)
v1.3
-Added Prune function.
-Added Top15 for TotalPlayedTime.(Only for online players).
  • Required Module:
nVault - If you want to store total played time.
(Note:If you don't want to store total played time just comment this line):
Code:
#define NVAULT
Prune Function:
1.Uncomment this line:
Code:
//#define PRUNE

2.Set prune time(in seconds):
Code:
#define PRUNE_TIME 2592000
  • Credits:
arkshine - Optimized version.
Deviance - nVault functions.
XxAvalanchexX
Attached Files
File Type: sma Get Plugin or Get Source (played_time.sma - 17712 views - 5.3 KB)
File Type: sma Get Plugin or Get Source (played_time_authid.sma - 12652 views - 5.5 KB)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 04-09-2007 at 13:19.
Alka is offline