Question [Need quickly answer] -
Eugene. - 14.10.2012
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,
Re: Question [Need quickly answer] -
JhnzRep - 14.10.2012
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.
Re: Question [Need quickly answer] -
JaKe Elite - 14.10.2012
@JhnzRep, what about if there is any filterscript that uses a tuning menu without going to garage.
Then it will banned the innocent players.
Re: Question [Need quickly answer] -
Lordzy - 14.10.2012
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.
Re: Question [Need quickly answer] -
JaKe Elite - 14.10.2012
oh yes forgot to do that.
Re: Question [Need quickly answer] -
caki - 14.10.2012
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.
Re: Question [Need quickly answer] -
JhnzRep - 14.10.2012
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.