PDA

View Full Version : [FS| 0.2.2] TYS [REL: 12 Feb 2008] Test Your Server 1.5


[LDT]LuxurY
16/11/2007, 06:37 PM
This a simple filterscript which gives information about amount of vehicles, types of vehicles, objects, pickups etc...
But now it gives information about players, has small admin system for ban/kick/heal/armour and changemode functions. Also it detects bots. It could be seen in "player statictic".

So, screens:

Start:
http://i019.radikal.ru/0802/3f/0520feed4751.jpg

Main statictic:
http://i035.radikal.ru/0802/cc/5ff22a51b0a8.jpg

List of vehicles
http://i036.radikal.ru/0711/98/51a44b008ea0.bmp

Admin section:
http://i026.radikal.ru/0802/e6/f7018bcb3ffe.jpg

Player list:
http://i030.radikal.ru/0802/25/c21308d9ba89.jpg

Changemode section:
http://i030.radikal.ru/0802/21/4e166abd4d05.jpg

Usage:
Just type in console loadfs TYS15
And then only follow instructions.

Downloading:

NEW! Version 1.5
1. SendSpace (http://www.sendspace.com/file/ev168q)
2. Pastebin (http://pastebin.com/m5eb0aa54)
3. RapidShare (http://rapidshare.com/files/91278282/tys15r2.rar)
4. GTAscript.ru (http://gtascript.ru/files/tys15r2.rar)
5. CrazyHost (http://www.crazyhost.info/download.php?file=362tys15r2.rar)

Version 1.4
1. SendSpace (http://www.sendspace.com/file/kt4k17)
2. Pastebin (http://www.pastebin.ca/790832)

Version 1.3
1. SendSpace (http://www.sendspace.com/file/7dst7d)
2. Pastebin (http://pastebin.ca/778363)

Version 1.2
1. SendSpace (http://www.sendspace.com/file/0gu09h)
2. Pastebin (http://www.pastebin.ca/777329)

killer57
16/11/2007, 06:44 PM
Niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiice goooooooooooooooooooood work !!!!!!!!!!

kaisersouse
16/11/2007, 06:44 PM
thats awesome. thank you :)

I just used it and it works great! I have to ask...what did you base your "recomended" values on? I only ask because I'm at 536 vehicles and 61 types...and now I'm slightly worried that I should trim that down a bit.

[LDT]LuxurY
16/11/2007, 06:44 PM
]
Very nice! No more time wasting to count vehicle models anymore ;)

Yeah! It's very useful!

Christian R.
16/11/2007, 08:09 PM
oh yes, thank you :P :P

Alejandro
16/11/2007, 08:50 PM
very nice. didnt know how many vehicle types i had on my server until i used this. good work.

dacads
16/11/2007, 08:51 PM
nice piece of work smarty :P

mabako
16/11/2007, 08:57 PM
the pickup limit is 400 (as seen on the front page)...
* Pickup limit increased to 400.

max. textdraws is defined as 1024 as well (in a_samp.inc)

an object count of 1000, as it's a if() statement in your source, is a lot too high, 150 is stable, anything more tends to crash
1000 pickups, 100 vehicle types and 1000 vehicles isn't gonna work as well.

IJzerenRita
16/11/2007, 09:19 PM
Am I the only one who sees that this script works only if all resource ids are assigned consecutively?
Suppose I have 100 menus and I decide to destroy the menu with id 5, the script will tell me I have 4 menus, while I have 99 then.

You need loop through all ids and check if the id is valid with the IsValid* functions.

vatolocomexi
16/11/2007, 09:35 PM
Good script 8)

Pyrokid
17/11/2007, 12:47 AM
Nice one. 8)

asteroid
17/11/2007, 09:32 AM
Yea really usefull. Shuld be added as sticky i think :roll:

Amit_B
17/11/2007, 10:14 AM
Very nice :)

raptor2003
17/11/2007, 01:11 PM
Very very very Usefull !!!

You can put that in SA-MP Showroom Directory.

Sorry for my english :$

RazorBlad3
17/11/2007, 02:37 PM
very, very useful
many thxs

[LDT]LuxurY
17/11/2007, 02:48 PM
There is no recommended value for vehicle count, 700 is fine. And I was very interested in how you got the stats, however for the actual display I recommend you read the printf tutorial in my sig, it will save you loads of time.

ok fixed

Instead of calling all the functions repeatedly it will be MUCH faster to call them each once and save the results in the variables. And I seriously mean MUCH faster.

fixed


Am I the only one who sees that this script works only if all resource ids are assigned consecutively?
Suppose I have 100 menus and I decide to destroy the menu with id 5, the script will tell me I have 4 menus, while I have 99 then.

You need loop through all ids and check if the id is valid with the IsValid* functions.

fixed


new Menu:cm = CreateMenu("Test",1,2,3,3,3);
new Menu:cm1 = CreateMenu("Test",1,2,3,3,3);
new Menu:cm2 = CreateMenu("Test",1,2,3,3,3);
new Menu:cm3 = CreateMenu("Test",1,2,3,3,3);
new Menu:cm4 = CreateMenu("Test",1,2,3,3,3);
DestroyMenu(cm3);
DestroyMenu(cm2);
ShowMenuForPlayer(cm,0);
ShowMenuForPlayer(cm1,0);
ShowMenuForPlayer(cm4,0);


output: 3

mabako ]
the pickup limit is 400 (as seen on the front page)...
* Pickup limit increased to 400.

max. textdraws is defined as 1024 as well (in a_samp.inc)

an object count of 1000, as it's a if() statement in your source, is a lot too high, 150 is stable, anything more tends to crash
1000 pickups, 100 vehicle types and 1000 vehicles isn't gonna work as well.


screenshot and script fixed :D


THX for all =)

[LDT]LuxurY
19/11/2007, 03:10 PM
what's about new version?

[LDT]LuxurY
20/11/2007, 04:55 PM
Version 1.4 reliased!

+++ System fixes
+++ Vehicle list
+++ Other little additions

kaisersouse
20/11/2007, 05:10 PM
AWESOME!

Ever thought about making something like this that admins can run as a command? For us Linux users who don't have a remote console.

[LDT]LuxurY
20/11/2007, 05:20 PM
AWESOME!

Ever thought about making something like this that admins can run as a command? For us Linux users who don't have a remote console.

now i can be done only in console.
i'll try to make something you talking about :D
May be TextDraw?

paike
20/11/2007, 10:41 PM
thanks!!!! very useful!

but whats that mean:
Types of vehicles: [ 66] [ 70] [ 60]
Errors and Warnings:
__________________________________________________ ______________
Warning: Recomended count of types of vehicles is 60

what i to ?


sry my very bad english!

JoseDaKilla
20/11/2007, 10:50 PM
great script helped me with my vehicled ids

[LDT]LuxurY
21/11/2007, 07:47 AM
thanks!!!! very useful!

but whats that mean:
Types of vehicles: [ 66] [ 70] [ 60]
Errors and Warnings:
__________________________________________________ ______________
Warning: Recomended count of types of vehicles is 60

what i to ?


sry my very bad english!


It's only a warning. It doesn't mean that you have problems. But if you'll have an error you have some problems.

My English isn't good too :D

paike
21/11/2007, 11:33 AM
thanks to answer :)

[LDT]LuxurY
21/11/2007, 02:43 PM
thanks to answer :)

THX for using :P

Sandra18[NL]
21/11/2007, 05:36 PM
****TYS14.pwn(173) : warning 213: tag mismatch
****TYS14.pwn(185) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Warnings.


Line 173:
return TT;

Line 185:
if (IsValidMenu(menx)) {

Simon
22/11/2007, 04:39 AM
Maybe you should change your vehicle count function to this, it'd be more accurate.


stock VehicleCount( )
{
new iVehicleCnt;

for( new i = 1; i < MAX_VEHICLES; i++ ) // Loop vehicles.
if ( GetVehicleModel( i ) ) // If it's not a valid vehicleid then GetVehicleModel will return 0.
iVehicleCnt++; // Increase if the vehicle model is not 0.

return iVehicleCnt;
}


In your VehicleModel function you should make a variable for the return value of VehicleCount and save it there instead of creating and then destroying 250 vehicles.

BioFreeze
23/11/2007, 09:28 AM
Using this spared me alot off time , keep up the good work! 8)

Mentis
23/11/2007, 04:44 PM
http://www.alevol.net/testy.png

It doesn't count some certain things. (I have no textdraws nor gamezones, so those work, however I have vehicles, types of vehicles, more objects and pickups.)

I also have the same warnings as Sandra18[NL]

****TYS14.pwn(173) : warning 213: tag mismatch
****TYS14.pwn(185) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Warnings.

kaisersouse
23/11/2007, 06:04 PM
Those are noob errors and can easily be corrected by whomever is trying to recompile the script.

Also, it will not count cars that are created via FS I don't think. At least...it didn't count any of my cars when I test Taxi's vehicle streamer.

[LDT]LuxurY
23/11/2007, 06:14 PM
http://www.alevol.net/testy.png

It doesn't count some certain things. (I have no textdraws nor gamezones, so those work, however I have vehicles, types of vehicles, more objects and pickups.)

I also have the same warnings as Sandra18[NL]

****TYS14.pwn(173) : warning 213: tag mismatch
****TYS14.pwn(185) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Warnings.


Script is OK. It's only warnings.
Also your gamemode text is unknown.

Sandra18[NL]
23/11/2007, 07:21 PM
You should never ignore warnings.

I have in my server about 400 vehicles, couple of objects and menu's
but why it says
- 0 vehicles
- 0 types
- 0 menu's
- 0 pickups

only the gamemodetext and maxplayers works fine...

[LDT]LuxurY
23/11/2007, 07:30 PM
]
You should never ignore warnings.

I have in my server about 400 vehicles, couple of objects and menu's
but why it says
- 0 vehicles
- 0 types
- 0 menu's
- 0 pickups

only the gamemodetext and maxplayers works fine...



hmm... so, how to correct it? :P

kaisersouse
23/11/2007, 07:52 PM
Sandra....are those vehicles, menus, and objects put into the game via filterscript?

Mentis
23/11/2007, 08:01 PM
Mine are loaded from gamemode, but still saying no vehicles.

[LDT]LuxurY
23/11/2007, 08:02 PM
Mine are loaded from gamemode, but still saying no vehicles.

hmmmm.... I haven't such problems...
May be you'll give me your gamemode for testing this problem?

Mentis
23/11/2007, 08:11 PM
I don't have such liberties ^^, It's not quite mine, it's the clan leader's.

Sandra18[NL]
23/11/2007, 08:22 PM
Sandra....are those vehicles, menus, and objects put into the game via filterscript?


Yeah, but now i have putted it in my gamemode, and now works fine.
Only it's still doesn't count the menu's because there is still the 'tag mismatch-warning at this line:
if (IsValidMenu(menx)) {

[LDT]LuxurY
23/11/2007, 08:32 PM
]

Sandra....are those vehicles, menus, and objects put into the game via filterscript?


Yeah, but now i have putted it in my gamemode, and now works fine.
Only it's still doesn't count the menu's because there is still the 'tag mismatch-warning at this line:
if (IsValidMenu(menx)) {



hmm... strangely. I'll try to check this!

TheSh@rk
27/11/2007, 09:28 PM
Thanks A LOT LuxurY!
And also I found a solution for the tag mismatchs:
Line 173:
return _:TT;
Lines 184-185:
for (new _:menx=1;_:menx<128;_:menx++) {
if (IsValidMenu(Menu:menx)) {

Just replace those lines, this should work.

[LDT]LuxurY
01/12/2007, 09:46 AM
Thanks A LOT LuxurY!
And also I found a solution for the tag mismatchs:
Line 173:
return _:TT;
Lines 184-185:
for (new _:menx=1;_:menx<128;_:menx++) {
if (IsValidMenu(Menu:menx)) {

Just replace those lines, this should work.


Yeah, It works :)

Lidor Kalfa
17/01/2008, 01:10 PM
very usefull =] thanks..! :lol:

DaKa
17/01/2008, 08:05 PM
This will help me in making my gamemode
Thanks

[LDT]LuxurY
12/02/2008, 01:37 PM
Huge Update! New version - 1.5 :D

mini_tomo_2
12/02/2008, 02:06 PM
Ah, brilliant. I tested this out and noticed I had 68 differet vehicle models, I never realised it was that high >_>

Will try the new version now.

Tried it out. Must say - wow. Awesome script :D

Only problem was that typing 5 to unload the FS didn't work. It tried to close "tys15" as apposed to "TYS15", which I'm assuming are different. Not hugely important, people some people may not know how to unload FS.

Numhaken
12/02/2008, 03:11 PM
Nice, want a mirror?

[LDT]LuxurY
12/02/2008, 04:26 PM
Nice, want a mirror?

thanks,sure!

Numhaken
12/02/2008, 06:00 PM
Mirror

http://www.crazyhost.info/download.php?file=747TYS15.rar

[LDT]LuxurY
12/02/2008, 06:15 PM
Mirror

http://www.crazyhost.info/download.php?file=747TYS15.rar

Thanks one more time! :D

[LDT]LuxurY
12/02/2008, 07:41 PM
Redownload please. Packages updated. Deleted bug with playerid 5. :D

sorry for doublepost

Redirect Left
13/02/2008, 01:29 AM
Very nice, very useful. Good work!


Only problem was that typing 5 to unload the FS didn't work. It tried to close "tys15" as apposed to "TYS15", which I'm assuming are different.

Yeah. Thats a Linux thing. Linux is case sensitive, the script should unload the capitals version to ensure Windows & Linux compatiblity in unloading ;)

Numhaken
13/02/2008, 01:45 AM
Updated Mirror
http://www.crazyhost.info/download.php?file=362tys15r2.rar

[LDT]LuxurY
15/02/2008, 02:28 PM
Updated Mirror
http://www.crazyhost.info/download.php?file=362tys15r2.rar

thanks )

What about new version? May be some bugs? :P

StepanKing7
07/03/2008, 03:36 PM
omfg awsome work!

robhol
07/03/2008, 03:43 PM
Omg, this looks fucking awesome!!
I'm away from my server ATM, so I can't test... :roll:
I wish I could. :D

robhol
09/03/2008, 11:36 AM
You could make it read includes.. To avoid having to scroll through 982340897 lines before getting to the "real" code of my GM I have all my vehicle commands in several files... just a suggestion ;)

[LDT]LuxurY
10/03/2008, 08:25 AM
You could make it read includes.. To avoid having to scroll through 982340897 lines before getting to the "real" code of my GM I have all my vehicle commands in several files... just a suggestion ;)

it can't read includes. it displays current statistic.

DaKa
27/03/2008, 01:42 PM
Will you be releasing a update to this when 0.2.5 comes out :mrgreen:

mini_tomo_2
27/03/2008, 01:49 PM
I imagine so, seeing as the limit for objects and vehicles will go up.

[LDT]LuxurY
27/03/2008, 04:32 PM
Terminator ]
Will you be releasing a update to this when 0.2.5 comes out :mrgreen:

yes of cource. and I want to have a 2 options:
limits for 0.2.2
limits for 0.2.5

aleksagtasamp
14/04/2008, 04:18 PM
Nice Work Man !!!
It Is Helping !!!
No More Waisting Time to find Car Id's
NIIICEEE WOORK !!!

[LDT]LuxurY
15/04/2008, 11:52 AM
Nice Work Man !!!
It Is Helping !!!
No More Waisting Time to find Car Id's
NIIICEEE WOORK !!!

thanks :) and it's not enough. there are a lot of other features. and there'll be some new features in next version.

mascii
02/07/2008, 02:40 AM
mate ur a

LEGEND!!

;)

Bews
03/07/2008, 05:10 PM
thx :)

Zh3r0
03/07/2008, 05:12 PM
Dude, long time no see huh?
Well, you saved my life :D.
Thanks for this.

silvan
23/08/2008, 10:40 PM
Bro i think i found a bug.

the bug is when i try to change the game mode and use the function of " other game mode " then server crashes after the gamemode is loaded. even when i try to close filterscript it crash the server too...

CracK
26/10/2008, 06:51 AM
Very cool!

MenaceX^
12/11/2008, 10:23 PM
Good job man. Really useful.

silvan
21/02/2010, 10:21 PM
could you please re-upload this ? version 1.4
EDIT: Sorry, for some reason i didn't saw the 1.5 which is working good, btw nice fs and keep it up bro.

btw does it work with 0.3a ?

I guess the borders are little fucked up :/ ( sorry about the word )

RenisiL
22/02/2010, 10:29 AM
Very useful, thank you so much :)

[WSM]Deadly_Evil
22/02/2010, 11:02 AM
Wow! Good Work I was just finding this type of thingy :D

Miguel_Teixeira
26/04/2011, 09:19 PM
all links down ?