SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/10/2016, 04:14 PM   #21
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 807
Reputation: 106
Default Re: Tune System

It would be great if you could call OnVehiclePaintjob and OnVehicleMod callbacks. Some vehicles system using those callbacks to update vehicle's variables, in that case your modding won't pass through their vehicle system, I don't know if calling them will fix this case since your release is a filterscript but if it does it would be good to get added.

Great release tho.
__________________
SecretBoss is offline   Reply With Quote
Old 04/10/2016, 05:00 PM   #22
PT
Godfather
 
PT's Avatar
 
Join Date: Nov 2012
Location: Europe
Posts: 7,180
Reputation: 803
Default Re: Tune System

Quote:
Originally Posted by Konstantinos View Post
Few of the last updates:
  • SQLite version was added.
  • It includes a created .db file so it will be easier for use (SQLite version).
  • "Lamps" and "Front/Rear Bullbar" were renamed to "Lights" and "Front/Rear Bullbars" respectively.
  • Indexes were added to tables structure to both MySQL and SQLite .sql files.

---

I'm planning to add two more versions that will basically be the initial version with an extra feature:
  1. neon
  2. prices (suitable for RP servers)

The next update will take a bit longer since University starts this week and there are more files to update for both MySQL and SQLite versions (plus the .sql files).

Well Konstantinos,

I know its thread is not for that porpose but i want ask and suggest something to you.

Create an anti cheat for mod hack, you could include on this the anti cheat.

And for the "punishment" of the player using it just remove the "bad/hack mod" from the car.

I know my english is not good and i sorry for that i hope you understand what i want.

Hugs.
PT is offline   Reply With Quote
Old 04/10/2016, 05:03 PM   #23
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 807
Reputation: 106
Default Re: Tune System

Quote:
Originally Posted by PT View Post
Well Konstantinos,

I know its thread is not for that porpose but i want ask and suggest something to you.

Create an anti cheat for mod hack, you could include on this the anti cheat.

And for the "punishment" of the player using it just remove the "bad/hack mod" from the car.

I know my english is not good and i sorry for that i hope you understand what i want.

Hugs.
Invalid mod exploit has been fixed on samp latest version (0.3.7)
__________________
SecretBoss is offline   Reply With Quote
Old 04/10/2016, 05:05 PM   #24
PT
Godfather
 
PT's Avatar
 
Join Date: Nov 2012
Location: Europe
Posts: 7,180
Reputation: 803
Default Re: Tune System

Quote:
Originally Posted by SecretBoss View Post
Invalid mod exploit has been fixed on samp latest version (0.3.7)
Is not for crash players but yes to simple apply mods on cars..
PT is offline   Reply With Quote
Old 04/10/2016, 06:30 PM   #25
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Tune System

Quote:
Originally Posted by SecretBoss View Post
It would be great if you could call OnVehiclePaintjob and OnVehicleMod callbacks. Some vehicles system using those callbacks to update vehicle's variables, in that case your modding won't pass through their vehicle system, I don't know if calling them will fix this case since your release is a filterscript but if it does it would be good to get added.

Great release tho.
I guess I could add a configuration that is disabled by default and enabling it would call these two callbacks.

If a player selects to remove the hydraulics they have installed to their vehicle, there won't be any way to know it in other scripts though. Those vehicle systems should have used a loop + GetVehicleComponentInSlot function.
Quote:
Originally Posted by PT View Post
Create an anti cheat for mod hack, you could include on this the anti cheat.

And for the "punishment" of the player using it just remove the "bad/hack mod" from the car.
OnVehicleMod callback is not called when AddVehicleComponent function is used. If the player's interior is 0, it is a cheat and you can return 0 to the callback to desync the mod.

When I'm going to add what SecretBoss said and if it will be enabled, the method described above won't work.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 05/10/2016, 02:33 AM   #26
Type-R
Huge Clucker
 
Type-R's Avatar
 
Join Date: Feb 2011
Posts: 291
Reputation: 5
Default Re: Tune System

Very nice work, Konstantinos! I might actually use this in my own server, since it's a very nice system and i have a bunch of other things to get done. T
__________________
Type-R is offline   Reply With Quote
Old 09/10/2016, 12:56 PM   #27
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Tune System

Great work! I love the fact that it's very well optimized (A lot might not care about that, but I appreciate it when I see it)

[I need to spread some reputation around before giving it to you...]
Stinged is offline   Reply With Quote
Old 09/10/2016, 01:09 PM   #28
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Tune System

Thanks Stinged, that's what I was aiming for!

A little update on the extra features I had mentioned by the way. There are few problems that cannot be solved unless people include certain things on their own.

- prices on components/paintjob: using server-side money will make it completely unaffected.
[CallRemoteFunction should be used for the scripts to "communicate" each other.]

- neon in cars: destroying a vehicle with neon installed in other scripts won't destroy the two objects.
[Hooking DestroyVehicle to call a callback such as OnVehicleDestroy would be the only solution.]
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 10/10/2016, 10:01 AM   #29
Slawiii
Huge Clucker
 
Slawiii's Avatar
 
Join Date: May 2015
Location: Morocco, Missour
Posts: 293
Reputation: 16
Default Re: Tune System

Good job Man
Slawiii is offline   Reply With Quote
Old 10/10/2016, 02:04 PM   #30
ChristolisTV
Big Clucker
 
ChristolisTV's Avatar
 
Join Date: Feb 2015
Location: Florida, USA
Posts: 154
Reputation: 12
Default Re: Tune System

nice!
__________________
YouTube | GitHub
Player since 04.09.2010
"Stop looking down, and look up to success."
- Christolis
ChristolisTV is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Car tune system bartje01 Filterscripts 33 30/08/2013 12:43 PM
[FilterScript] Tune system [BP]Tony Filterscripts 17 24/05/2012 05:38 AM


All times are GMT. The time now is 07:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.