PDA

View Full Version : [FilterScript] [FS]ServerStats Saver [V 2.0] New Feature: Vehicle Stats


Sandra18[NL]
28/02/2008, 08:06 PM
[FS]ServerStats Saver [V 2.0]


What Is It:

This Filterscript can save some statistics of your server and about the usage of vehicles in your server.
GlobalStats will get saved in a file ServerStats.txt (you can change filename if you want)
VehicleStats will get saved in file VehicleStats.txt (you can also change this filename if you want)

You can see the stats ingame or in the console. (VehicleStats only in console)
The VehicleStats will show only the types that are used.


Which stats will get saved?

Total ServerRestarts
Total Visits
Total Timeouts
Total Kicks/Bans
Total Deaths
Total Kills
Total Vehicles Used <<== NEW!!
Total Vehicles Destroyed
Total Commands used
Total Chatmessages sent
Total Privatemessages sent
Total Time the server has been online (days, hours, minutes seconds)

How many times each vehicle-type is used



Any Commands Available?

Ingame:

/serverstats
/resetserverstats (rcon admin only)
/resetvehiclestats (rcon admin only) <<== NEW!!


Console:

serverstats
resetserverstats
vehiclestats <<== NEW!!
resetvehiclestats <<== NEW!!



Configuration:

There are 6 things you can change (on top of the filterscript line 9, 10 & 11)

Stats will get saved when the filterscript gets unloaded.
You can also enable a timer which saves the serverstats regular.
new SavingFrequency = 30;
In this case, the stats will get saved every 30 seconds. If you set it to '0', the stats will not get saved regular (only on FilterScriptExit).

If you (don't) want to save the total time your server has been online, you can enable or disable this function by changing:
new SaveTotalTimeOnline = 1;
(1 = enabled 0 = disabled)

You can change is the name of the file where the Global-stats will get saved in.
#define StatsFile "ServerStats.txt"
Default file = ServerStats.txt

You can change is the name of the file where the Vehicle-stats will get saved in.
#define VehicleStatsFile "VehicleStats.txt"
Default file = VehicleStats.txt

If you don't want the filterscript to save vehiclestats change
new SaveVehicleStats = 1;
to '0'

You can let this Filterscript save the vehicestats regular.
new VehicleSavingFrequency = 600;
Fill in the number of seconds (default 600 seconds (10 minutes) (0 = disable regular saving)
Warning: While vehiclestats are getting saved, the server may lag for a few seconds!!!

Any Screens??

Sure:

Ingame:
http://img411.imageshack.us/img411/3725/serverstatsfsingameqf3.jpg

Console:
Global Statistics:
http://img246.imageshack.us/img246/493/serverstatsfsuq6.jpg

Vehicle Statistics:
http://img178.imageshack.us/img178/1656/vehiclestatsfsfl4.jpg


Download:
[V 2.0]
==>> ServerStats.pwn (http://www.mediafire.com/?r2bn2egjbbz)
==>> ServerStats.amx (http://www.mediafire.com/?bdsjxmojg2z)
==>> .pwn mirror (http://www.xeonshare.com//dld.php?i=1822f5e1-8003-40df-8830-da4b4a5a274d) R@f
==>> .amx mirror (http://www.xeonshare.com//dld.php?i=6c66d120-b071-4bdf-a569-485b353fa60d) R@f

[V 1.0]
==>> ServerStatSaver.rar (MediaFire) (http://www.mediafire.com/?mysntk4licm)
==>> Mirror by R@f (http://www.xeonshare.com//dld.php?i=26f657a7-ba64-4149-a94a-03bf61d851e3)

You will need Dini & Dutils
I added those includes to the [V 1.0] .rar file


Please Comment:

- Please give positive or negative comments about this filterscript
- If you find a bug, please report it here.
- Do you have suggestions or other questions, you can post them here. :)

I hope you like this FilterScript.

If you're going to use it, please give me credits.

=>Sandra<=

Homerman
28/02/2008, 08:08 PM
Very nice job!!

[LSF]bence93
28/02/2008, 08:12 PM
Very very nice jobb ;) :D!!
THX!!!!! Filterscript!

Curynga
28/02/2008, 08:13 PM
very very very nice Sandra !


Awesome !

I try to use it, for my server :P


Tranks :D

Spilot
28/02/2008, 08:25 PM
Very awesome script and organization. I'll put your name to /credits.

Sandra18[NL]
28/02/2008, 08:30 PM
Thanks :D

LethaL
28/02/2008, 08:38 PM
omg this is amazing, i will use this for sure :D

Rafelder_GRF
28/02/2008, 08:40 PM
Very nice script, maybe i'll use it ;)

nthell
28/02/2008, 08:55 PM
very nice thanks for this ill have this on my servers :lol:

Rks25
28/02/2008, 10:02 PM
Thank you very much Sandra!!:)

Rksss

Rks25
28/02/2008, 10:40 PM
The OnRconCommand part isn't working for me??

Rksss

Sandra18[NL]
28/02/2008, 11:07 PM
Rksss ]
The OnRconCommand part isn't working for me??

Rksss


Don't use a slash '/'

Rks25
28/02/2008, 11:09 PM
How do you mean?

Rksss

Sandra18[NL]
28/02/2008, 11:11 PM
Rksss ]
How do you mean?

Rksss


In the console, if you want to use commands, don't put a slash in front of the command (like you have to do ingame)
Just typ in console:
serverstats

NOT
/serverstats

Jashugan
28/02/2008, 11:12 PM
You should make a gamemode Sandra your releases are good :)

Sandra18[NL]
28/02/2008, 11:13 PM
You should make a gamemode Sandra your releases are good :)

Thanks, but what kind of gamemode? :P

Rks25
28/02/2008, 11:27 PM
Isn't it possible to implent this in a gm?


Rksss

-Sneaky-
28/02/2008, 11:28 PM
Nice im devloping something like this for my gamemode to :)

Sandra18[NL]
28/02/2008, 11:28 PM
Rksss ]
Isn't it possible to implent this in a gm?

Rksss


Yes, it's possible, but than you can't view statistics in your console (only ingame)

Rks25
28/02/2008, 11:31 PM
Isn't it possible to also make it possible for console?
By making a mini-fs for it, with only OnRconCommand in it?

Rksss

Sandra18[NL]
28/02/2008, 11:34 PM
Rksss ]
Isn't it possible to also make it possible for console?
By making a mini-fs for it, with only OnRconCommand in it?

Rksss


Sure it's possible, you only have to read those values from a file.
But why not using this whole filterscript?
Now stats will get saved for every gamemode you use.

Numhaken
28/02/2008, 11:44 PM
Hey this is real nice! You want a mirror?

Edu
29/02/2008, 11:26 AM
Yeaaah.. great job Sandra :P :P Good idea :mrgreen:

Jashugan
29/02/2008, 01:38 PM
You should make a gamemode Sandra your releases are good :)

Thanks, but what kind of gamemode? :P


That's up to your imagination ;)

Relax
29/02/2008, 01:59 PM
Nice....very nice ;) Tnx

R@f
29/02/2008, 02:41 PM
nice :D i will use it

PS : did you need a mirror ?

R@f

Sandra18[NL]
29/02/2008, 02:56 PM
PS : did you need a mirror ?


ok

R@f
29/02/2008, 03:26 PM
mirror (http://www.xeonshare.com//dld.php?i=26f657a7-ba64-4149-a94a-03bf61d851e3)

R@f

[LDT]LuxurY
29/02/2008, 03:50 PM
nice work sandra! :P

Toribio
29/02/2008, 04:35 PM
Very nice script!
Thanks!

Sandra18[NL]
29/02/2008, 05:00 PM
New: Version 2.0

I added a Vehicle-Statistics-Saver
This will save how many times each vehicle-typ is used.

More details in first post.

Screen:
http://img178.imageshack.us/img178/1656/vehiclestatsfsfl4.jpg

I also added 'Total Vehicels Used' to the Global-stats.

Have fun!

Numhaken
29/02/2008, 05:19 PM
Really nice new feature, thanks!

Sandra18[NL]
29/02/2008, 07:29 PM
Thanks! :D

If you have suggestions for a new feature, i'dd like to hear it ;)

R@f
29/02/2008, 08:55 PM
new mirrors ;)
.pwn mirror (http://www.xeonshare.com//dld.php?i=1822f5e1-8003-40df-8830-da4b4a5a274d)
.amx mirror (http://www.xeonshare.com//dld.php?i=6c66d120-b071-4bdf-a569-485b353fa60d)

R@f

nate660
02/03/2008, 04:42 AM
I am wondering since you are good with this stuff sandra, If you could make a working script that saves the Persons Kills, Deaths, Time On Server,

If you could do that i would OMG i don't no what i would do Because i simply suck at Stat saving although i will keep trying and if i get anything to work i would be glad to share with the sa-mp Guys Cheers

soxfan
02/03/2008, 05:14 AM
Nate660 ]
I am wondering since you are good with this stuff sandra, If you could make a working script that saves the Persons Kills, Deaths, Time On Server,

Nate, pm me your msn or contact info. I made a kills/deaths stats saving script yesterday. I will send to you if you want. You can use it, or just check it out and see how I did it.

=>Sandra<=, I love this script. Very nice code, and great features. I like the vehicles stats. I havnt seen that before. :)

PinkFloydLover
02/03/2008, 05:43 AM
this is good cool and straight pink

P1nd3r
02/03/2008, 08:18 AM
Like it :)

[LDT]LuxurY
02/03/2008, 10:18 AM
nice update. like my TYS vehicle list :P

Sandra18[NL]
02/03/2008, 03:34 PM
LuxurY ]
nice update. like my TYS vehicle list :P


Yes, but your TYS....
(I use your TYS very often by the way. I really like it!!)
....counts how many vehicles of each type are in a server.

Mine FS counts how many each vehicle-type is used.

mccoll
04/03/2008, 05:51 PM
I keep gettin this ERROR :

Ziggke
09/03/2008, 11:04 PM
Holly shit!
Just wath i needed!

Thanks vurry much Sandra

hector_williams
11/03/2008, 06:10 PM
Nice work, you should make it so it saves the name of the person who does the kicks, and bans and save the name of the person who got kicked and who got banned.

**HITMEN**
11/03/2008, 06:41 PM
yeah !!! :D :D

**HITMEN**
11/03/2008, 06:41 PM
and who enter to the server his name and ip :roll:

Zh3r0
13/03/2008, 02:36 PM
OhMFG.I never seend something like that :O Awesome Thx sandra a lot :D ;)

Exuro
13/03/2008, 02:51 PM
Nice work!

jakes888
08/01/2009, 11:30 AM
link is dead...and how to download on xneonshare? :s
some other link??pls

Vyorel
21/02/2009, 03:04 PM
Very very very nice filterscript Sandra....wow
cool ;)

Mrkrabz
14/03/2009, 05:49 PM
Nice man, Might use this sometime, Comes in useful in some places :D

MenaceX^
14/03/2009, 05:53 PM
Rksss ]
How do you mean?

Rksss


In the console, if you want to use commands, don't put a slash in front of the command (like you have to do ingame)
Just typ in console:
serverstats

NOT
/serverstats

What so hard to understand Rks?..
/rcon command without / like
/rcon /command.
It's SendRconCom, not OnPlayerCmdText ..

kingdutch
25/03/2009, 04:14 PM
Sounds nice, haven't had a chance to check out the code (Stupid me I know :roll:)

But what exactly are you doing when you save vehicle stats that it lags? Is it cause you save it to a file?

BTW Suggestions: MySQL support! :D Cause I won't be hosting my website on the same server as the SAMP server and MySQL is easier to reach from another computer than a file is ;)

*ToM*
25/03/2009, 04:21 PM
Great Job, Nice Filterscript ! Im gonna use it for sure ! ;)

Helpergood
21/07/2013, 09:51 PM
Sandra..
Can you please do one like it but for normal players?
Like they get there times of crashes/visits/timeig/kills/deaths/scores/money/etc..
Thanks if you do. :)