27.02.2018, 16:33
(
Last edited by RogueDrifter; 06/04/2018 at 06:51 PM.
)
FSB_ (Fixed SA-MP Bug) Silent teleport
Last updated 2018/3/8
Code:
Updated to V3 read edit #3
What's the 'Silent teleport' bug?
First off, it isn't a cheat to not get you confused, simply put:
Player A is driving around, while he's driving he decides to use a teleporting cmd,
Player A is typing /gotosf but at that moment Player B approaches player A
Player B tries to carjack player A the moment he does /gotosf and teleports,
Player A teleports while getting jacked through the teleport cmd,
Player B gets teleported silently (server didn't read it at all) and would get detected as a cheater if you use any anti-tp
------------
This include not only fixes this but gives you complete control over the procedure done. On top of that auto eject paused players when jacked to avoid confusion when they come back (also sort of a samp bug fixed).
Usage:
[Must include in all scripts and edit only through gamemode as always.]
Code:
Callbacks: --=-=-=-=-= OnPlayerJackTeleporter(playerid, teleporterid, vehicleid); ---------- playerid = Jacker (the player who was going to get teleported silently by the bug) teleporterid = Jacked player (the one who used the cmd to teleport) vehicleid = Vehicle used in the process. -=-=-=-=-=-=-=-=-= Functions: -=-=-=-=-= IsPlayerJackedTping(playerid); IsPlayerJackingTper(playerid); IsVehicleJackedTping(vehicleid); -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--------
Comments:
Kinda bored so i'll not post much here, if you have any questions just let me know in the comments, and an FYI, this uses 0 on-going timers set on connect so it won't load up much and detects the silent action efficiently!
Change.Log:
Code:
#1: Initial release. #2: Tweaked the code a bit to fix a bug that happened when you tped in a car, all fixed. #3: Removed the debug messages i forgot i left there lol must update to this to not get random messages sent, also fixed some variable value that had to be set on spawn, so yeah updated to V3.
Pastebin: HERE
Github: HERE
----------
Have fun with it. (Edited the function param names cuz it was switched between the jacker and jacked ids).