Raised This Month: $ Target: $400
 0% 

Played Time


Post New Thread Reply   
 
Thread Tools Display Modes
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 04-10-2007 , 17:01   Re: Played Time
Reply With Quote #61

Quote:
Originally Posted by Alka View Post
@voi,neogeo Use this(played_time by nick) =>>
@who is giving me - karma please post your problem!I dunno...
thx! but still it will be good if u add option to view all rank via php
Code:
#define PRUNE_TIME 2592000 /*30 days*/ /*Time in seconds*/
this controls time after data about a player is deleted ?
Code:
public client_disconnect(id)
{
    TotalPlayedTime[id] = TotalPlayedTime[id] + (get_user_time(id)/60);
     if(TotalPlayedTime[id] > 5.0)
    {
    SaveTime(id, TotalPlayedTime[id]);
    }
}
this will prevent from too many unnecessary keys in nvault

also the rank command shows only players that are connected o_O
__________________

Last edited by Voi; 04-10-2007 at 19:51.
Voi is offline
Old 04-10-2007, 17:04
Voi
This message has been deleted by Voi.
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-11-2007 , 02:31   Re: Played Time
Reply With Quote #62

1.Dunno how to do that! "rank via php".
2.Prune = If a player wont enter on server in that interval of time,after that time his/her data will be deleted!
3.Rank show players that are currently on server!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
|POW|Da_ghost
Senior Member
Join Date: Nov 2006
Location: http://snarkcafe.net
Old 04-11-2007 , 07:48   Re: Played Time
Reply With Quote #63

Alka for number one you would make the plugin MYSQL compatible and you will have to write a php script that displays the MYSQL output(the hours)
__________________
If you want me to help you with something please contact me on msn or xfire(Daghost1337)
|POW|Da_ghost is offline
Send a message via AIM to |POW|Da_ghost Send a message via MSN to |POW|Da_ghost
Coksnuss
Junior Member
Join Date: Feb 2007
Old 04-11-2007 , 12:02   Re: Played Time
Reply With Quote #64

Oh yes, MySQL would make the Script perfect!
Then TOP15 (from ALL players) would be a piece of cake too...

Last edited by Coksnuss; 04-12-2007 at 02:36.
Coksnuss is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-11-2007 , 15:53   Re: Played Time
Reply With Quote #65

yeah...but ftm(for the moment) this using nVault! (dunno mysql)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 10-27-2007 , 21:26   Re: Played Time
Reply With Quote #66

I dont know why, but !ptime and /pttop15 doesnt work for me.. it works for amx_playedtime nick, but not for that say commands..
oh and it worked when tried to use edited version for times for nicks not IPs.
Oh and it shows that there is no cvar amx_pt_mode .. cant change it or do anything with it
__________________
Ahujena
mazmaajinsh is offline
MHz
Member
Join Date: May 2007
Old 10-30-2007 , 09:34   Re: Played Time
Reply With Quote #67

Ok, Hi ALL ! I read all replays! I`m using a server non steam protejed by SxE ! And all of players have NoN Steam , and can any one edit the plugin? Because all players have : -> valve_id_pending, and here in Romania all players use`s a net with an ip who changes ! ( FiberLinK ) And when Player is connecting ( valve_id_pending ) , he playes 5 minutes, and when is connecting Player2 ( valve_id_pending ) , player2 has 5 minutes on the server, and he is just now is connected! Sorry 4 my english but i dont know more ! Pls read this Post! And Alka , I know u
MHz is offline
dzr
Junior Member
Join Date: Dec 2007
Old 02-22-2008 , 11:05   Re: Played Time
Reply With Quote #68

L 02/22/2008 - 18:02:55: Function "show_top15" was not found
L 02/22/2008 - 18:02:55: [AMXX] Displaying debug trace (plugin "played_t
")
L 02/22/2008 - 18:02:55: [AMXX] Run time error 19: function not found
L 02/22/2008 - 18:02:55: [AMXX] [0] 15046.attach::plugin_init (line 3
Executing AMX Mod X Configuration File
Scrolling message displaying frequency: 10:00 minutes
L 02/22/2008 - 18:03:06: Invalid CVAR pointer
L 02/22/2008 - 18:03:06: [AMXX] Displaying debug trace (plugin "played_t
")
L 02/22/2008 - 18:03:06: [AMXX] Run time error 10: native error (native
ar_num")
L 02/22/2008 - 18:03:06: [AMXX] [0] 15046.attach::handle_say (line 49
dzr is offline
dzr
Junior Member
Join Date: Dec 2007
Old 02-22-2008 , 11:08   Re: Played Time
Reply With Quote #69

whats the storing method? ip / steamid / name? could u create one by name please?
dzr is offline
chiksum
Junior Member
Join Date: Apr 2008
Old 07-04-2008 , 12:05   Re: Played Time
Reply With Quote #70

If rank can show a top15 for all player would make this script perfect !
chiksum 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 15:19.


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