Question [Need quickly answer]
#1

Dear everybody,

I have a huge problem and I want to ask if there exist any scripts that I can stop a hacker to enter in vehicles and put invalid tuning parts which gives OPCodes and crash everyone around that vehicle ? If yes, I really need something like that as soon is possible because there are some hackers which are keep Ban Evading even after I range banned them (IG + on Volt Host Firewall). Thank you very much.


Best Regards,
Reply
#2

PHP код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
    if(
GetPlayerInterior(playerid) == 0)
    {
        
SendClientMessage(playerid, -1"Banned for tuning hacks!");
        
Ban(playerid); 
    }
    return 
0;

Might work, might not.

EDIT: return 0; is supposed to desync the modding from crashing players, but it might now work since people would be doing it through ******. Well it's worth a shot.
Reply
#3

@JhnzRep, what about if there is any filterscript that uses a tuning menu without going to garage.
Then it will banned the innocent players.
Reply
#4

Quote:
Originally Posted by Romel
Посмотреть сообщение
@JhnzRep, what about if there is any filterscript that uses a tuning menu without going to garage.
Then it will banned the innocent players.
Yes you are correct.
But it can be prevented by creating some player variables.

Example
PHP код:
new notunehack[MAX_PLAYERS]; //Creating a player variable to use it as whether hacking or not.
CMD:mytunecommand(playerid,params[])
{
  
notunehack[playerid] = 1;
  
//Stuff here.
  
return 1;
}
public 
OnVehicleMod(playerid,vehicleid,componentid

  if(
notunehack[playerid] == 0//Detects if player is not in tuning command.
  
{
    if(
GetPlayerInterior(playerid) == 0
    { 
        
SendClientMessage(playerid, -1"Banned for tuning hacks!"); 
        
Ban(playerid);  
    }
  }
  else if(
nohacktune[playerid] == 1//If player was tuning, sets to 0.
  
{
    
nohacktune[playerid] = 0;
  } 
    return 
0

But if dialogs are used to pop out after tuning, you must set the nohacktune variable again to 1 or else the user will get banned.
Reply
#5

oh yes forgot to do that.
Reply
#6

You can use this forum.sa-mp.com/showthread.php?t=281906&highlight=tuning Check if it is mod compatible vehicle , if not ban player or whatever you want.
Reply
#7

Quote:
Originally Posted by Romel
Посмотреть сообщение
@JhnzRep, what about if there is any filterscript that uses a tuning menu without going to garage.
Then it will banned the innocent players.
Umm, yes it would. But there are two reasons it shouldn't...1st He runs a RP, server. 2nd he seems like a half decent developer.

Plus, I don't like giving people full code...They don't learn as much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)