This include is for detect players using teleport hacks. Maybe fly hack and airbreak can be detected.
- Foreach - Put the include file in pawno/include folder
- SAfull.hmap - Put the map file in scriptfiles folder
- PatrickGRT: Original code creator
- Walter-Correa: Improvments and fixes
- Pottus: GetVehicleSpeed
- karimcambridge: Foreach include
- RyDeR: GetPointZPos
You can check is player still in hacked position and how many seconds
IsPlayerTeleporting(playerid)
You can try reset to the old position or/and warn/kick/ban
public OnPlayerTeleport(playerid, Float:distance, Float:oldx, Float:oldy, Float:oldz)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetVehiclePos(GetPlayerVehicleID(playerid), oldx, oldy, oldz);
else SetPlayerPos(playerid, oldx, oldy, oldz);
return 1;
}