open.mp forum
[Pawn] Car Hacking - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Car Hacking (/showthread.php?tid=1202)



Car Hacking - yukie - 2020-10-02

Does anyone how to detect this kind of hack??



https://youtu.be/zbYB6rD-A0s


RE: Car Hacking - BoNNe - 2020-10-03

In order for this solution to work, the cheater will need at least two vehicles for which to act the cheat.

Code:
new ac_ouvu_js[MAX_PLAYERS], ac_ouvu_vid[MAX_PLAYERS], ac_ouvu_tick[MAX_PLAYERS];

public OnPlayerConnect(playerid) {

ac_ouvu_vid[playerid]=INVALID_VEHICLE_ID;

ac_ouvu_tick[playerid]=0;

ac_ouvu_js[playerid]=0;

return 1;

}

public OnVehicleStreamIn(vehicleid, forplayerid) {

ac_ouvu_js[forplayerid]=gettime();

return 1;

}

public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z) {

if(ac_ouvu_vid[playerid] != vehicleid && GetTickCount()-ac_ouvu_tick[playerid] > 100 && gettime()-ac_ouvu_js[playerid] > 3) Kick(playerid); //99% use troll-hack

ac_ouvu_vid[playerid]=vehicleid;

ac_ouvu_tick[playerid]=GetTickCount();

return 1;

}



RE: Car Hacking - yukie - 2020-10-04

(2020-10-03, 09:47 PM)BoNNe Wrote: In order for this solution to work, the cheater will need at least two vehicles for which to act the cheat.
Code:
new ac_ouvu_js[MAX_PLAYERS], ac_ouvu_vid[MAX_PLAYERS], ac_ouvu_tick[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
ac_ouvu_vid[playerid]=INVALID_VEHICLE_ID;
ac_ouvu_tick[playerid]=0;
ac_ouvu_js[playerid]=0;
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid) {
ac_ouvu_js[forplayerid]=gettime();
return 1;
}
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z) {
if(ac_ouvu_vid[playerid] != vehicleid && GetTickCount()-ac_ouvu_tick[playerid] > 100 && server_gettime-ac_ouvu_js[playerid] > 3) Kick(playerid); //99% use troll-hack
ac_ouvu_vid[playerid]=vehicleid;
ac_ouvu_tick[playerid]=GetTickCount();
return 1;
}

There was an error and it says "Undefine symbol server_gettime"


RE: Car Hacking - BoNNe - 2020-10-04

Try now.


RE: Car Hacking - yukie - 2020-10-04

(2020-10-04, 09:20 AM)BoNNe Wrote: Try now.

Yeah Sure


RE: Car Hacking - yukie - 2020-10-04

Thank man! You're life saver!!


RE: Car Hacking - yukie - 2020-10-04

(2020-10-04, 09:29 AM)yukie Wrote: Thank man! You're life saver!! 䑃



RE: Car Hacking - yukie - 2020-10-04

(2020-10-04, 09:20 AM)BoNNe Wrote: Try now.



Sir there was a little bug.. every time I relog, i always kick with the detector even im not using the cheat how do I fix this


RE: Car Hacking - BoNNe - 2020-10-04

(2020-10-04, 10:40 AM)yukie Wrote:
(2020-10-04, 09:20 AM)BoNNe Wrote: Try now.



Sir there was a little bug.. every time I relog, i always kick with the detector even im not using the cheat how do I fix this



Be sure you did everything I told you. Inclusive "OnPlayerConnect"


RE: Car Hacking - yukie - 2020-10-05

(2020-10-04, 09:40 PM)BoNNe Wrote:
(2020-10-04, 10:40 AM)yukie Wrote:
(2020-10-04, 09:20 AM)BoNNe Wrote: Try now.



Sir there was a little bug.. every time I relog, i always kick with the detector even im not using the cheat how do I fix this



Be sure you did everything I told you. Inclusive "OnPlayerConnect"



I did?everything but still kicking me out of game


RE: Car Hacking - BoNNe - 2020-10-05

(2020-10-05, 06:37 AM)yukie Wrote:
(2020-10-04, 09:40 PM)BoNNe Wrote:
(2020-10-04, 10:40 AM)yukie Wrote:
(2020-10-04, 09:20 AM)BoNNe Wrote: Try now.



Sir there was a little bug.. every time I relog, i always kick with the detector even im not using the cheat how do I fix this



Be sure you did everything I told you. Inclusive "OnPlayerConnect"



I did?everything but still kicking me out of game

It doesn't happen for?me. I have tested many times.


RE: Car Hacking - yukie - 2020-10-08

(2020-10-05, 06:53 PM)BoNNe Wrote:
(2020-10-05, 06:37 AM)yukie Wrote:
(2020-10-04, 09:40 PM)BoNNe Wrote:
(2020-10-04, 10:40 AM)yukie Wrote:
(2020-10-04, 09:20 AM)BoNNe Wrote: Try now.



Sir there was a little bug.. every time I relog, i always kick with the detector even im not using the cheat how do I fix this



Be sure you did everything I told you. Inclusive "OnPlayerConnect"



I did?everything but still kicking me out of game

It doesn't happen for?me. I have tested many times.



maybe I installed it on my pc thats why I got kick everytime I join in game


RE: Car Hacking - hiwyn - 2022-05-16

its not working, i got kicked by using this script and i don't even have the hack installed!


RE: Car Hacking - Flofey - 2022-11-09

try this

PHP Code:
new ac_ouvu_js[MAX_PLAYERS], ac_ouvu_vid[MAX_PLAYERS], ac_ouvu_tick[MAX_PLAYERS];



public 
OnPlayerConnect(playerid

{

    
ac_ouvu_vid[playerid] = 0;

    
ac_ouvu_tick[playerid] = 0;

    
ac_ouvu_js[playerid] = 0;

    return 
1;

}

public 
OnVehicleStreamIn(vehicleidforplayerid

{

    
ac_ouvu_js[forplayerid] = gettime();

    if(
vehicleid == INVALID_VEHICLE_ID) return ac_ouvu_vid[playerid] = INVALID_VEHICLE_ID;

    return 
1;

}

public 
OnUnoccupiedVehicleUpdate(vehicleidplayeridpassenger_seatFloat:new_xFloat:new_yFloat:new_zFloat:vel_xFloat:vel_yFloat:vel_z

{

    if(
ac_ouvu_vid[playerid] != vehicleid && GetTickCount()-ac_ouvu_tick[playerid] > 100 && gettime()-ac_ouvu_js[playerid] > 3Kick(playerid); //99% use troll-hack

    
ac_ouvu_vid[playerid]=vehicleid;

    
ac_ouvu_tick[playerid]=GetTickCount();

    return 
1;