![]() |
#1 |
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 28
|
![]() Hello guys. In my server have player with troll cheat. the cheat is make player who in vehicle will flying up. Who know how to stop it ? #sorryformybadenglish |
![]() |
![]() |
![]() |
#2 |
Big Clucker
![]() ![]() Join Date: Jul 2007
Posts: 137
Reputation: 26
|
![]()
Ban the player.
In all seriousness, you prolly cant detect what player is doing it, because they're not doing it trough a route that SA-MP provides, so you have no way of knowing what playerid initiated movement on a vehicle. Maybe you can get a bit more pleasing awnser in some of the anti-cheat thread's floating around, there might actually be a way to detect, personally, i dont know of any. Oh and your English is fine, making your entire post bold is kinda useless though :P |
![]() |
![]() |
![]() |
#3 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2014
Location: India
Posts: 1,548
Reputation: 170
|
![]()
Its remote jacking.. I dont think you can script an anti cheat against it..ban em.
![]() |
![]() |
![]() |
![]() |
#4 |
Big Clucker
![]() ![]() Join Date: Jul 2007
Posts: 137
Reputation: 26
|
![]()
Hmm, remote jacking as in carjacking? where multiple players are in the driver seat of a vehicle?
Then you could actually detect it: 0] Make an array in which you can store player-vehicle pairs. (for example using playerid as key and vehicleid as value) 1] Make a function that loops trough all the connected players 2] In that function, check if they're in a vehicle, if they are, check if they are in the driver-seat 3] If they are in driver-seat, loop trough the array from step 0, check to make sure no other player is registered as driver 4] If no other player is registered as the driver of said vehicle, store the player-vehicle pair in the array 5] BUT, if there is another player registered as the driver of said vehicle, the new player is actually a cheating son of a beach Do take into consideration things like quits, deaths etc, make sure you handle those events, so that your player-vehicle array pairs are always correct. (and you dont end up banning people who you think have cheated, while its actually down to old data in said array) |
![]() |
![]() |
![]() |
#5 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,141
Reputation: 445
|
![]()
The SA-MP data wouldn't report multiple drivers, I don't believe. But the troll modification doesn't call OnPlayerEnterVehicle for the vehicle, but it will show up as a state change, there is no need for any type of looping to detect the cheat.
pawn Code:
This should work in detecting warp hackers. |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for anti Troll Car , aimbot | jesdynguyen | Scripting Help | 4 | 04/03/2019 09:04 AM |
Anti-troll hacking | Banditukas | Scripting Help | 7 | 17/10/2015 06:57 PM |
Anti car troll | TheWay | Scripting Help | 4 | 24/01/2015 07:38 AM |
How to stop troll car , i need some anti code please | jesdynguyen | Scripting Help | 7 | 12/05/2014 11:02 AM |