there is no protection against cleo mods, some servers use their own clients to connect to the server
which checks the GTA folder for stuff like hacks and cleo ofc. but that can be bypassed easily so it's not really
a good protection.
however, you could get your hands on some cleo hacking shit scripts and study them. see what they do and how they do it so that you can script protection against it.
for example, i once made an anti cleo remote vehicle control script.
I searched for the hack online, found it, opened it with sanny builder and tryed to figure out how it works.
My solution for this hack was a smalland simple control structure.
this in OnPlayerStateChange
pawn Код:
if(oldstate == PLAYER_STATE_PASSENGER && newstate == PLAYER_STATE_DRIVER)
checks if a player switches from being a passenger to being the driver without even getting out of the car.
That's not possible ofc. so you can ban the player if this control structure ever equals true for some player.
also, you have to make sure that your script doesen't offer the ability to directly switch from passenger to driver mode ofc.
as said, try tog et your hands on some hacks and study them.
But you can't script a protection against everything, as hackers uusing cleo normally code their own hacks
rather than downloading some of the common ones (like the car control one)