Problem with my anti teleport hack script
#8

First sorry For Multi Posting i dintd found the modify button i will make this never again oke second problem i have read the problem in solution to fast, heer is another solution test it. dosent work sorry .? (and a last sorry for my english iam from switzerland you understand )


new spawned[MAX_PLAYERS];

//OnPlayerSpawn

spawned[]playerid = 1;

//OnPlayerDeath
//OnPlayerConnect
//OnPlayerDisconnect

spawned[playerid] = 0;


if(pstate!=PLAYER_STATE_PASSENGER && GetPlayerSurfingVehicleID(i)==INVALID_VEHICLE_ID && !IsPlayerInRangeOfPoint(i,500.0,CurrentPos[i][0],CurrentPos[i][1],CurrentPos[i][2]))
{
if(!IsPlayerInRangeOfPoint(i,1.5,JB_PlayerInfo[i][JB_pSetPos][0],JB_PlayerInfo[i][JB_pSetPos][1],JB_PlayerInfo[i][JB_pSetPos][2]))
{
if(IsCheatPosition(i) && spawned == 1) //check player spawned
{
Ban(i,"Teleport Hack");
Report(i,"Teleport Hack",reason);
}
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)