Walter-Correa / OnPlayerTeleport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This include is for detect players using teleport hacks. Maybe fly hack and airbreak can be detected.

Requeriments

  • Foreach - Put the include file in pawno/include folder
  • SAfull.hmap - Put the map file in scriptfiles folder

Credits

Callback

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;
}

About


Languages

Language:Pawn 100.0%