Anti crash
#1

I saw in some servers that in the chat it says "%s has been banned for trying to crash the server"

Is there any tutorial about anti crash ?
Reply
#2

i think here
Reply
#3

Don't you think i search? ._.

No tutorials found.
Reply
#4

One kind of crashing near players > use cheats to make an invalid mod on vehicle
This is very nice: https://sampforum.blast.hk/showthread.php?tid=317303
Reply
#5

Not kind of that, kind of crashes server
Reply
#6

It really depends on what you mean by 'crashing the server'. I don't think this would be an Anti-DDoS, because that's just... not very good. Invalid vehicle mods do have the potential to, maybe not crash the server, but crash all the clients that come close to the 'invalid' vehicle. If you have multiple invalid vehicles, you have multiple crash sites where clients will disconnect. If you don't already have it, use the anti-invalid vehicle mod by JernejL. If you can think of anything else that might crash the server, add it to the list.
Reply
#7

This seems to be more of a client-related issue this quote is referencing how-ever it should still be fairly relevant to the issue at-hand:
http://forum.sa-mp.com/forumdisplay.php?f=19

More specifically,
Quote:
Originally Posted by Matite
Посмотреть сообщение
"Vehicle component crasher" = Add code to OnVehicleMod to check if the component being synced is not valid for the vehicle (return 0 if it is bad). Look for a post by JernejL with this code.

"Bullet crasher (Player)" = Add code to OnPlayerWeaponShot to check the type of shot. If the player is shooting themselves (not possible) then do not sync it (return 0). If the bullet hit location is outside what would be considered a normal range then do not sync it (return 0). If the bullet hit location is INF or NaN then kick/ban and do not sync it (return 0). Look for code on the forum to do this if you need more help.

"Bullet crasher (Vehicle)" = Same as above for "Bullet crasher (Weapon)".

"Train crasher" = Add code to OnPlayerUpdate or a timer that checks the train and trams Z position. If it is outside the range of -10 to 100 then it is not valid. In OnPlayerUpdate you could de-sync this data (return 0) or in a timer you could alert admins and kick/ban the player.

"Attached object crasher" = Add code to OnPlayerEditAttachedObject to check the model ID returned is valid. You should not attach an object in this callback using the model ID that is returned... it should be stored in a variable elsewhere when the player first starts editing the attached object.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)