SA-MP Forums Archive
Need anti cheat - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need anti cheat (/showthread.php?tid=603551)



Need anti cheat - keyvanik - 24.03.2016

Hi i need anti mouse scroll tp hack like use scroll to sit on vehicle or tp on buildings


Re: Need anti cheat - Joron - 24.03.2016

Ik the hack its teleport.... look for a teleporting anticheat ._.


Re: Need anti cheat - keyvanik - 24.03.2016

Quote:
Originally Posted by Joron
Посмотреть сообщение
Ik the hack its teleport.... look for a teleporting anticheat ._.
I have teleport hack and fix but not fix this


Re: Need anti cheat - N0FeaR - 24.03.2016

What do u mean?


Re: Need anti cheat - keyvanik - 24.03.2016

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
What do u mean?
if you work with sobit if active and press mouse scroll you can teleport on buildings or in cars and ....


Re: Need anti cheat - Phar - 24.03.2016

Quote:
Originally Posted by Joron
Посмотреть сообщение
Ik the hack its teleport.... look for a teleporting anticheat ._.
Quote:
Originally Posted by keyvanik
Посмотреть сообщение
I have teleport hack and fix but not fix this
Quote:
Originally Posted by keyvanik
Посмотреть сообщение
if you work with sobit if active and press mouse scroll you can teleport on buildings or in cars and ....
Same shit tis teleporting warp to vehicle/player is teleport


Re: Need anti cheat - Abagail - 24.03.2016

IIRC scrolling into a vehicle doesn't call OnPlayerEnterVehicle. You can probably set a variable there, but you also have to put the PutPlayerInVehicle function into account as well as it doesn't call it either.

Example:
pawn Код:
new PlayerEnterVehicle[MAX_PLAYERS] = INVALID_VEHICLE_ID;
PutPlayerInVehicle(playerid, vehicleid, seat) {
     if(PutPlayerInVehicle(playerid, vehicleid, seat) == 1) {
            PlayerEnterVehicle[playerid] = vehicleid;
     }

     return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
     PlayerEnterVehicle[playerid] = vehicleid;
     return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate) {
     if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
           if(PlayerEnterVehicle[playerid] != GetPlayerVehicleID(playerid)) BanEx(playerid, "Vehicle Teleport Hacks");
           PlayerEnterVehicle[playerid] = INVALID_VEHICLE_ID;
     }
 
     return 1;
}

public OnPlayerConnect(playerid) PlayerEnterVehicle[playerid] = INVALID_VEHICLE_ID;



Re: Need anti cheat - Phar - 26.03.2016

Quote:
Originally Posted by Abagail
Посмотреть сообщение
IIRC scrolling into a vehicle doesn't call OnPlayerEnterVehicle. You can probably set a variable there, but you also have to put the PutPlayerInVehicle function into account as well as it doesn't call it either.

Example:
pawn Код:
new PlayerEnterVehicle[MAX_PLAYERS] = INVALID_VEHICLE_ID;
PutPlayerInVehicle(playerid, vehicleid, seat) {
     if(PutPlayerInVehicle(playerid, vehicleid, seat) == 1) {
            PlayerEnterVehicle[playerid] = vehicleid;
     }

     return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
     PlayerEnterVehicle[playerid] = vehicleid;
     return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate) {
     if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
           if(PlayerEnterVehicle[playerid] != GetPlayerVehicleID(playerid)) BanEx(playerid, "Vehicle Teleport Hacks");
           PlayerEnterVehicle[playerid] = INVALID_VEHICLE_ID;
     }
 
     return 1;
}

public OnPlayerConnect(playerid) PlayerEnterVehicle[playerid] = INVALID_VEHICLE_ID;
This is wrong meaning the errors i get by using this...

Quote:

error 021: symbol already defined: "PutPlayerInVehicle"
error 010: invalid function or declaration
error 010: invalid function or declaration




Re: Need anti cheat - keyvanik - 31.03.2016

Quote:
Originally Posted by Abagail
Посмотреть сообщение
IIRC scrolling into a vehicle doesn't call OnPlayerEnterVehicle. You can probably set a variable there, but you also have to put the PutPlayerInVehicle function into account as well as it doesn't call it either.

Example:
pawn Код:
new PlayerEnterVehicle[MAX_PLAYERS] = INVALID_VEHICLE_ID;
PutPlayerInVehicle(playerid, vehicleid, seat) {
     if(PutPlayerInVehicle(playerid, vehicleid, seat) == 1) {
            PlayerEnterVehicle[playerid] = vehicleid;
     }

     return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
     PlayerEnterVehicle[playerid] = vehicleid;
     return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate) {
     if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
           if(PlayerEnterVehicle[playerid] != GetPlayerVehicleID(playerid)) BanEx(playerid, "Vehicle Teleport Hacks");
           PlayerEnterVehicle[playerid] = INVALID_VEHICLE_ID;
     }
 
     return 1;
}

public OnPlayerConnect(playerid) PlayerEnterVehicle[playerid] = INVALID_VEHICLE_ID;
im using this bot not work