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

Remember the frags


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical       
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-01-2004 , 11:39   Remember the frags
#1

Frags and deaths count will be remembered by server when you log off/map changes/server shuts down. Next time you log on your frags and deaths count will be like they were when you left.
With a cvar you can have the stats reset after a specific amount of seconds and when a new map loads - this way you can prevent "reconnectors" since their frags + deaths will remain unchanged for the specified time, or until a new map loads.
Attached Files
File Type: sma Get Plugin or Get Source (rememberthefrags.sma - 1185 views - 10.6 KB)
Johnny got his gun is offline
knocker
Senior Member
Join Date: Mar 2004
Old 05-15-2004 , 08:53  
#2

is there a possibility to choose on which events and how long the frags/deaths are stored?

id like to use it to punish reconnecters who reconnect to hide their bad scores. its really annoying nowadays ...
so the plugin shouldnt store their score on mapchange but just for 15 minutes after a players disconnects. so if he just reconnects he has his old score again but didnt gain anything ...
knocker is offline
Send a message via ICQ to knocker
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-15-2004 , 09:27  
#3

Well maybe that could be fixed just by emptying the saved stats when a new map loads? Would be easy.
Johnny got his gun is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-16-2004 , 16:26  
#4

umm Johny someone asked If I can combine this with another plugin that I was working on that stops them from reconnecting within a certain time.. I dunno what your take on it is so im asking here. If you agree the plugin will have your name in the register too. and ofcourse in the thread also? thanx

EDIT- here's the URL :http://130.215.27.179/forums/viewtopic.php?t=2164
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-17-2004 , 06:50  
#5

That someone would be "knocker" who posted above, and I've already fixed that for this plugin.

So with this new version, set rememberthefrags_resetonnewmap to 1 and when a new map loads the vault where the stats are saved, will be emptied.
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-17-2004 , 07:35  
#6

Ok I already made the next update. The cvar changed into "rememberthefrags_resetseconds".

Set it to 0 and stats will be remembered forever.
Set it to 600 and users' stats will be reset upon new map, or if the map is still running, after 600 seconds from the time they left your server.
Set it to -1 and users' stats will be reset upon new map without being reset as long as original map is running.
Johnny got his gun is offline
knocker
Senior Member
Join Date: Mar 2004
Old 05-17-2004 , 12:54  
#7

yes, it was my request ... his plugin had the concept to give reconnecters no advantage, but the point of keeping the stats was missing ;)
knocker is offline
Send a message via ICQ to knocker
FeliX
Junior Member
Join Date: Apr 2004
Old 05-17-2004 , 14:18  
#8

What a cool idea, putting it one of our servers right away ;)
FeliX is offline
knocker
Senior Member
Join Date: Mar 2004
Old 05-18-2004 , 12:17  
#9

i tested your plugin this morning, but somehow it isnt working correctly. it seems it doesnt write the stats to the vault. plugin is running and resets the vault data at mapchange but vault.ini is always empty ...
knocker is offline
Send a message via ICQ to knocker
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-18-2004 , 12:19  
#10

is your vault writeable? as in chmoded to 777. just an idea.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Closed Thread



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:58.


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