Raised This Month: $32 Target: $400
 8% 

Played Time


Post New Thread Reply   
 
Thread Tools Display Modes
xeqtrcs
Member
Join Date: Aug 2016
Old 08-25-2016 , 04:04   Re: Played Time
Reply With Quote #161

hello my friend,


how the reset online top15 or total played time? thank you
xeqtrcs is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 08-26-2016 , 12:59   Re: Played Time
Reply With Quote #162

Quote:
Originally Posted by xeqtrcs View Post
hello my friend,


how the reset online top15 or total played time? thank you
Delete the nvault file "Time_played":

Quote:
Originally Posted by xeqtrcs View Post
-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.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
aleeprz
New Member
Join Date: Nov 2012
Old 09-26-2016 , 00:52   Re: Played Time
Reply With Quote #163

Quote:
Originally Posted by kioezar View Post
How to know the first player who have more time played?
I want to know the same thing, because the /pttop15 show playedtime of ONLY online players.
aleeprz is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 09-16-2017 , 09:51   Re: Played Time
Reply With Quote #164

can some 1 edit html code pls?? for me
i wan't color full and awesome pls edit for me

PHP Code:
public show_top15(id)
{
    new 
icount;
    static 
sort[33][2], maxPlayers;
    
    if(!
maxPlayersmaxPlayers get_maxplayers();
    
    for(
i=1;i<=maxPlayers;i++)
    {
        
sort[count][0] = i;
        
sort[count][1] = TotalPlayedTime[i] + (get_user_time(i1) / 60);
        
count++;
    }
    
    
SortCustom2D(sort,count,"stats_custom_compare");
    
    new 
motd[1024], len    
    
    len 
format(motd1023,"<body bgcolor=#000000><font color=#FFB000><pre>")
    
len += format(motd[len], 1023-len,"%s %-22.22s %3s^n""#""Nick""Played Time")
    
    new 
players[32], num
    get_players
(playersnum)
    
    new 
clamp(count,0,15)
    
    new 
name[32], player
    
    
for(new 0ba++)
    {
        
player sort[a][0]
        
        
get_user_name(playername31)        
        
len += format(motd[len], 1023-len,"%d %-22.22s %d^n"a+1namesort[a][1])
    }
    
    
len += format(motd[len], 1023-len,"</body></font></pre>")
    
show_motd(idmotd"Played-Time Top 15")
    
    return 
PLUGIN_CONTINUE

shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 09-16-2017 , 11:12   Re: Played Time
Reply With Quote #165

shehzad1234: Follow this/
__________________
Relaxing is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 01-09-2019 , 21:46   Re: Played Time
Reply With Quote #166

Can anyone edit this so bots aren't showed in the top15 because I currently use bots in my server.
Copper is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 01-10-2019 , 22:05   Re: Played Time
Reply With Quote #167

Just add if is_user_bot(id) where the data is saved/loaded.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 01-11-2019 , 02:47   Re: Played Time
Reply With Quote #168

Wouldn't that only save/load the information if a player is a bot? Think that will most likely show only bots in the top15 as well.
Copper is offline
X3.
Junior Member
Join Date: Sep 2018
Old 01-11-2019 , 05:31   Re: Played Time
Reply With Quote #169

Quote:
Originally Posted by Copper View Post
Wouldn't that only save/load the information if a player is a bot? Think that will most likely show only bots in the top15 as well.
Code:
if(is_user_bot(id))
return PLUGIN_HANDLED
X3. is offline
AymanWadi
Junior Member
Join Date: Feb 2020
Old 05-13-2020 , 02:00   Re: Played Time
Reply With Quote #170

hhh hope i will get a soon answer . I want to ask you to use a normal command like /ptime to show played time instead of !ptime because i think its easier and if you could delete the current played time from the plugin because you can check server status and you will see time played . In other words when player type /ptime he see total hours played . Dont ask you to change your plugin just make a copy of your plugin with this modification if you can tnx
AymanWadi is offline
Reply



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 05:53.


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