SA-MP Forums Archive
[Tutorial] Perfect Protection against invalid mods. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Perfect Protection against invalid mods. (/showthread.php?tid=317303)

Pages: 1 2


Re: Perfect Protection against invalid mods. - Derek_Westbrook - 10.05.2012

Wow thanks alot!


Re: Perfect Protection against invalid mods. - Slice - 17.06.2012

For those of you saving carmods and such, this could probably be very useful.

It includes a very quick version of islegalcarmod, and an iterator for valid components (needs y_iterator aka foreach).

Example:
pawn Code:
print("Landstalker can handle components:");

foreach(new componentid : ValidComponents(400)) {
    printf("\t- %d", componentid);
}
output:
Code:
Landstalker can handle components:
	- 1008
	- 1009
	- 1010
	- 1013
	- 1018
	- 1019
	- 1020
	- 1021
	- 1024
	- 1025
	- 1073
	- 1074
	- 1075
	- 1076
	- 1077
	- 1078
	- 1079
	- 1080
	- 1081
	- 1082
	- 1083
	- 1084
	- 1085
	- 1086
	- 1087
	- 1096
	- 1097
	- 1098



Re: Perfect Protection against invalid mods. - CROSS_Hunter - 21.07.2012

Tremendous


Re: Perfect Protection against invalid mods. - $mooth - 21.07.2012

How do i use this?


Re: Perfect Protection against invalid mods. - bye - 03.08.2012

Nice. Good.


Re: Perfect Protection against invalid mods. - Mishima - 13.08.2012

I get errors C:\My Documents\supa\gamemodes\ye.pwn(18443) : error 017: undefined symbol "wheelmodels@YSII_Ag"
C:\My Documents\supa\gamemodes\ye.pwn(18443) : error 017: undefined symbol "wheelmodels@YSII_Ag"

How to fix?


Re: Perfect Protection against invalid mods. - [MM]IKKE - 20.08.2012

Bump.

There seems to be at least one car missing:
Car: Emperor - ID: 585
can be tuned using transfenders. At least by adding vents to it (cID: 1145 and 1143).

Tested on 3 servers:
-One banning on tune - banned already about 10 players
-One removing the car you're in - removed the car when I applied it
-One without the table. Installed the car mod using default transfenders, didn't bug at all.

I don't have any mods myself installed.

Also, already reported + confirmed on IRC: page 2 of this thread doesn't work.


Re: Perfect Protection against invalid mods. - skylive77 - 24.08.2012

How to install this code ?
I have put that on my gamemode and i have this message :
Quote:

C:\...\...\...\...\...\....\...\XXX.pwn(95326) : warning 203: symbol is never used: "IllegalCarNitroIde"
C:\...\...\...\...\...\....\...\XXX.pwn(95326) : warning 203: symbol is never used: "OnVehicleMod"
C:\...\...\...\...\...\....\...\XXX.pwn(95326) : warning 203: symbol is never used: "illegal_nos_vehicle"
C:\...\...\...\...\...\....\...\XXX.pwn(95326) : warning 203: symbol is never used: "iswheelmodel"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.

Line 95326 return the end of my Gamemode.


Re: Perfect Protection against invalid mods. - RenSoprano - 24.08.2012

It's awesome


Respuesta: Perfect Protection against invalid mods. - Samp4lifes - 01.02.2013

but what about the four warnings?


Re: Perfect Protection against invalid mods. - Glossy42O - 22.11.2014

Let's say that part if (carmodel == illegalvehs[I])

What does that mean? when do i use it ?


Re: Perfect Protection against invalid mods. - Glossy42O - 22.11.2014

It's gonna take forever to read this but okay.


Respuesta: Perfect Protection against invalid mods. - RcoNs! - 27.01.2015

where I use this?

pawn Code:
illegal_nos_vehicle(PlayerID) {
   
    new carid = GetPlayerVehicleID(PlayerID);
    new playercarmodel = GetVehicleModel(carid);
   
    return IllegalCarNitroIde(playercarmodel);
   
}



Re: Perfect Protection against invalid mods. - TheRaGeLord - 28.01.2015

Thanks for Release, You're Awesome


Re: Perfect Protection against invalid mods. - Arastair - 28.01.2015

That's great, really creative

Quote:
Originally Posted by JernejL
View Post
There are assholes running bots which connect to a server, teleport in a car around and send crashing mod info to crash players en-masse, this should enable you to 100% protect yourself against this threat.
Like vehicle warping or some shit?


Re: Perfect Protection against invalid mods. - ~Error - 25.05.2016

Huge thanks! Love you for that <3 :*


Re: Perfect Protection against invalid mods. - Bussyman - 11.05.2017

Is there all list of vehicles and it's working?