[Tutorial] Perfect Protection against invalid mods.
#21

Wow thanks alot!
Reply
#22

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
Reply
#23

Tremendous
Reply
#24

How do i use this?
Reply
#25

Nice. Good.
Reply
#26

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?
Reply
#27

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.
Reply
#28

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.
Reply
#29

It's awesome
Reply
#30

but what about the four warnings?
Reply
#31

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

What does that mean? when do i use it ?
Reply
#32

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

where I use this?

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

Thanks for Release, You're Awesome
Reply
#35

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?
Reply
#36

Huge thanks! Love you for that <3 :*
Reply
#37

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


Forum Jump:


Users browsing this thread: 1 Guest(s)