SA-MP Forums Archive
Anti teleport to vehicle - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti teleport to vehicle (/showthread.php?tid=69371)



Anti teleport to vehicle - -Davee- - 17.03.2009

Hey

I have a big problem with cheaters. He/She teleport in other playert vehicle or player have "Car jacked" text.
I don't know how I stop it. Does somebody have an idea?


Re: Anti teleport to vehicle - brett7 - 17.03.2009

i don't think this is possible to detect


Re: Anti teleport to vehicle - -Davee- - 17.03.2009

Ohh .. Lot of people use it though and disturbs the players


Re: Anti teleport to vehicle - brett7 - 17.03.2009

yes it is a very annoying hack your best option is to have active admins


Re: Anti teleport to vehicle - MenaceX^ - 17.03.2009

Hmhm...

Try to check someone if he teleports, if he teleported somehow while he can't (he isnt an admin so he cheats) so lock all vehicles for him?


Re: Anti teleport to vehicle - brett7 - 17.03.2009

you could try to trick them by making a set of locked vehicles and set timer checking if a player is in the vehicle and isn't admin then ban them


Re: Anti teleport to vehicle - Dujma - 17.03.2009

That has something to do with SA lock bug. You can acces the vehicle if it is moving slow. Like someone else is driving the vehicle very slow and you press F or ENTER and player starts to folow the car and after 1-2 seconds he is in vehicle.


Re: Anti teleport to vehicle - -Davee- - 17.03.2009

Quote:
Originally Posted by Dujma
That has something to do with SA lock bug. You can acces the vehicle if it is moving slow. Like someone else is driving the vehicle very slow and you press F or ENTER and player starts to folow the car and after 1-2 seconds he is in vehicle.
No I speak s*beit cheat eg: Cheater location SF airport, player locatoin LS airport and cheater use the "Teleport to player vehicle" and cheaters teleported in player vehicle and vehicle have 2 drivers( cheater, player )...
But player exit vehicle and cheaters steal his car...


Re: Anti teleport to vehicle - ReV. - 27.03.2009

Well, there are some possible ways to detect it but it would require a bit of script knowledge and it might not turn out so perfect. The only thing you can do is get some decent admins to watch the server..


Re: Anti teleport to vehicle - illay - 29.03.2009

Davee,

According to me this well answer:

Complete ACJ (Anti Car Jack) script:
pawn Код:
//--Include
#include <a_samp.inc>

//--Defines
#define MAX_ENTERED (3)//Max embarkation determination inside 10 second
#define MIN_ENTERED (0)

//--Forwards
forward public CarJackTimer();
forward public DestroyCarJack();
forward public aCarJack();

//--News
new Entered[MAX_PLAYERS];

//--Cycles
public OnFilterScriptInit()
{
      //--Anti Car Jack Timers
SetTimer("aCarJack",1000,true);
    SetTimer("CarJackTimer",10000,true);
    SetTimer("DestroyCarJack",10000,true);
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
      Entered[playerid]++;
    return 1;
}

public aCarJack() {
  for(new i=0;i<MAX_PLAYERS;i++) {
    if(Entered[i]==MAX_ENTERED) {
      return Kick(i); //--Kick doll' Cheater
      }
     }
     return 1;
}

public DestroyCarJack() {
  for(new i=0;i<MAX_PLAYERS;i++) {
    return Entered[i]=MIN_ENTERED;
  }
    return 1;
}

public CarJackTimer() {
    for(new i=0;i<MAX_PLAYERS;i++) {
      if(Entered[i]==MAX_ENTERED) {
        return Entered[i]=MAX_ENTERED;
        }
    }
    return 1;
}
//--End script (Anti Car Jack by illay)
His functional principle:

Timer progressively checks the embarkation number and that car theft is if the 10 second over three
When appertains his inward's full portal vehicle, the also the cycle, therefore is aware of to catch