SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 11/04/2010, 12:23 AM   #1
Ben147
Huge Clucker
 
Join Date: Jul 2009
Posts: 264
Reputation: 0
Default Problem with my anti teleport hack script

Code:
new Float:CheatPositions[][3]=
{
	{-1935.77, 228.79, 34.16},//Transfender near Wang Cars in Doherty
	{-2707.48, 218.65, 4.93},//Wheel Archangels in Ocean Flats
	{2645.61,-2029.15,14.28},//LowRider Tuning Garage in Willowfield
	{1041.26,-1036.77,32.48},//Transfender in Temple
	{2387.55,1035.70,11.56},//Transfender in come-a-lot
	{1836.93,-1856.28,14.13},//Eight Ball Autos near El Corona
	{2006.11,2292.87,11.57},//Welding Wedding Bomb-workshop in Emerald Isle
	{-1787.25,1202.00,25.84},//Michelles Pay 'n' Spray in Downtown
	{720.10,-470.93,17.07},//Pay 'n' Spray in Dillimore
	{-1420.21,2599.45,56.43},//Pay 'n' Spray in El Quebrados
	{-100.16,1100.79,20.34},//Pay 'n' Spray in Fort Carson
	{2078.44,-1831.44,14.13},//Pay 'n' Spray in Idlewood
	{-2426.89,1036.61,51.14},//Pay 'n' Spray in Juniper Hollow
	{1957.96,2161.96,11.56},//Pay 'n' Spray in Redsands East
	{488.29,-1724.85,12.01},//Pay 'n' Spray in Santa Maria Beach
	{1025.08,-1037.28,32.28},//Pay 'n' Spray in Temple
	{2393.70,1472.80,11.42},//Pay 'n' Spray near Royal Casino
	{-1904.97,268.51,41.04},//Pay 'n' Spray near Wang Cars in Doherty
	{403.58,2486.33,17.23},//Player Garage: Verdant Meadows
	{1578.24,1245.20,11.57},//Player Garage: Las Venturas Airport
	{-2105.79,905.11,77.07},//Player Garage: Calton Heights
	{423.69,2545.99,17.07},//Player Garage: Derdant Meadows
	{785.79,-513.12,17.44},//Player Garage: Dillimore
	{-2027.34,141.02,29.57},//Player Garage: Doherty
	{1698.10,-2095.88,14.29},//Player Garage: El Corona
	{-361.10,1185.23,20.49},//Player Garage: Fort Carson
	{-2463.27,-124.86,26.41},//Player Garage: Hashbury
	{2505.64,-1683.72,14.25},//Player Garage: Johnson House
	{1350.76,-615.56,109.88},//Player Garage: Mulholland
	{2231.64,156.93,27.63},//Player Garage: Palomino Creek
	{-2695.51,810.70,50.57},//Player Garage: Paradiso
	{1293.61,2529.54,11.42},//Player Garage: Prickle Pine
	{1401.34,1903.08,11.99},//Player Garage: Redland West
	{2436.50,698.43,11.60},//Player Garage: Rockshore West
	{322.65,-1780.30,5.55},//Player Garage: Santa Maria Beach
	{917.46,2012.14,11.65},//Player Garage: Whitewood Estates
	{1641.14,-1526.87,14.30},//Commerce Region Loading Bay
	{-1617.58,688.69,-4.50},//San Fierro Police Garage
	{837.05,-1101.93,23.98},//Los Santos Cemetery
 	{-2057.8000,229.9000,35.6204}, // San Fierro
 	{-2366.0000,-1667.4000,484.1011}, // Mount Chiliad
 	{2503.7000,-1705.8000,13.5480}, // Grove Street
 	{1997.9000,1056.3000,10.8203}, // Las Venturas
 	{-2872.7000,2712.6001,275.2690}, // BaySide
 	{904.1000,608.0000,-32.3281}, // Unterwasser
 	{-236.9000,2663.8000,73.6513}, // The big Cock
 	{974.0177,-9.5937,1001.1484}, // Brothel 1
 	{961.9308,-51.9071,1001.1172}, // Brothel 2
 	{830.6016,5.9404,1004.1797}, // Track betting
 	{1037.8276,0.3970,1001.2845}, // Fools records
 	{1290.4106,1.9512,1001.0201}, // Warehoues 1
 	{1412.1472,-2.2836,1000.9241}, // warehouse 2
 	{1527.0468,-12.0236,1002.0971}, // bdup's aprtmnt
 	{612.2191,-123.9028,997.9922}, // whell arch angels
 	{512.9291,-11.6929,1001.5653}, // OG Loc
 	{418.4666,-80.4595,1001.8047}, // Barber Shop
 	{-201.2236,-43.2465,1002.2734}, // Tattoo Paralor
 	{-202.9381,-6.7006,1002.2734}, // Tattoo paralor
 	{611.3536,-77.5574,997.9995}, // Loco Low
 	{-2041.2334,178.3969,28.8465}, // Garbage
 	{-1402.6613,106.3897,1032.2734}, // 8Track
 	{2016.1156,1017.1541,996.8750}, // Four Dragons
 	{-741.8495,493.0036,1371.9766}, // Liberity City
 	{-1129.8909,1057.5424,1346.4141}, // RC BattleField
 	{414.2987,-18.8044,1001.8047}, // Barber Shop
 	{-2158.6731,642.0900,1052.3750}, // Wu Zi Mu
 	{1133.3500,-7.8462,1000.6797}, // Casino
 	{-1420.4277,1616.9221,1052.5313}, // Kickstart stadium
 	{-202.8420,-24.0325,1002.2734}, // Tattoo paralor
 	{-944.2402,1886.1536,5.0051}, // sherma dam
 	{1.5491,23.3183,1199.5938}, // jet interior
 	{-1417.8927,932.4482,1041.5313}, // blood blowl stadium
 	{-27.8440,-26.6737,1003.5573}, // 24/7
 	{2135.2004,-2276.2815,20.6719}, // warehouse 3
 	{2548.4807,2823.7429,10.8203}, // K.A.C.C
 	{411.9707,-51.9217,1001.8984}, // Barger Shop
 	{-1421.5618,-663.8262,1059.5569}, // dirtbike stadium
 	{-1401.0670,1265.3706,1039.8672}, // Vice stadium
 	{-1813.2130,-58.0120,1058.9641},// Francis airport
 	{-26.8339,-55.5846,1003.5469}, // 24/7
 	{315.4544,976.5972,1960.8511}, // Andromada
 	{2548.4807,2823.7429,10.8203}, // K.A.C.C
 	{1893.0731,1017.8958,31.8828} // Four Dragons office
 	
 	

};


Code:
stock IsCheatPosition(playerid)
{
	for(new i=0;i<sizeof(CheatPositions);i++)
	  if(IsPlayerInRangeOfPoint(playerid,5.0,CheatPositions[i][0],CheatPositions[i][1],CheatPositions[i][2]))
	    return true;
	return false;
}

Code:
			    if((z<900.0)==(CurrentPos[i][2]<900.0))buildings.
			    {
						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))
						    {
                  Ban(i,"Teleport Hack");
								  Report(i,"Teleport Hack",reason);
								}
								  
							}
						}
					}


And only 3 of spawns giving ban and the others are not
Ben147 is offline  
Old 11/04/2010, 02:37 AM   #2
nateskywalker
Little Clucker
 
Join Date: Jan 2010
Posts: 13
Reputation: 0
Default Re: Problem with my anti teleport hack script

oke dude make top of script

new spawned[MAX_PLAYERS];

//OnPlayerSpawn

spawned[]playerid = 1;

//OnPlayerDeath

spawned[playerid] = 0;


stock IsCheatPosition(playerid)
{
for(new i=0;i<sizeof(CheatPositions);i++)
if(IsPlayerInRangeOfPoint(playerid,5.0,CheatPositi ons[i][0],CheatPositions[i][1],CheatPositions[i][2]) && spawned[playerid] == 1)
return true;
return false;
}
nateskywalker is offline  
Old 11/04/2010, 02:38 AM   #3
nateskywalker
Little Clucker
 
Join Date: Jan 2010
Posts: 13
Reputation: 0
Default Re: Problem with my anti teleport hack script

Quote:
Originally Posted by nateskywalker
oke dude make top of script

new spawned[MAX_PLAYERS];

//OnPlayerSpawn

spawned[playerid] = 1;

//OnPlayerDeath

spawned[playerid] = 0;


stock IsCheatPosition(playerid)
{
for(new i=0;i<sizeof(CheatPositions);i++)
if(IsPlayerInRangeOfPoint(playerid,5.0,CheatPositi ons[i][0],CheatPositions[i][1],CheatPositions[i][2]) && spawned[playerid] == 1)
return true;
return false;
}
nateskywalker is offline  
Old 11/04/2010, 02:39 AM   #4
nateskywalker
Little Clucker
 
Join Date: Jan 2010
Posts: 13
Reputation: 0
Default Re: Problem with my anti teleport hack script

oke dude make top of script

new spawned[MAX_PLAYERS];

//OnPlayerSpawn

spawned[playerid] = 1;

//OnPlayerDeath

spawned[playerid] = 0;


stock IsCheatPosition(playerid)
{
for(new i=0;i<sizeof(CheatPositions);i++)
if(IsPlayerInRangeOfPoint(playerid,5.0,CheatPositi ons[i][0],CheatPositions[i][1],CheatPositions[i][2]) && spawned[playerid] == 1)
return true;
return false;
}
nateskywalker is offline  
Old 11/04/2010, 02:43 AM   #5
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 3,076
Reputation: 406
Default Re: Problem with my anti teleport hack script

One post is enough nateskywalker.

On topic: That system looks a bit dodgy, if a player is in a place he gets a ban?
__________________
People seem to enjoy negitive repping me for topics that I made in 2009.
Therefore, if you want to view my releases, you can go here.

Skype: TheKiller@dr.com
I do NOT script for cash. Add me on MSN if you need help with small issues.
[HiC]TheKiller is offline  
Old 11/04/2010, 02:52 AM   #6
Ben147
Huge Clucker
 
Join Date: Jul 2009
Posts: 264
Reputation: 0
Default Re: Problem with my anti teleport hack script

Yes , because the only ways in my server to get there it's with hacks
Ben147 is offline  
Old 11/04/2010, 02:59 AM   #7
Ben147
Huge Clucker
 
Join Date: Jul 2009
Posts: 264
Reputation: 0
Default Re: Problem with my anti teleport hack script

Quote:
Originally Posted by nateskywalker
Quote:
Originally Posted by nateskywalker
oke dude make top of script

new spawned[MAX_PLAYERS];

//OnPlayerSpawn

spawned[playerid] = 1;

//OnPlayerDeath

spawned[playerid] = 0;


stock IsCheatPosition(playerid)
{
for(new i=0;i<sizeof(CheatPositions);i++)
if(IsPlayerInRangeOfPoint(playerid,5.0,CheatPositi ons[i][0],CheatPositions[i][1],CheatPositions[i][2]) && spawned[playerid] == 1)
return true;
return false;
}

Doesn't help still the same problem
Ben147 is offline  
Old 11/04/2010, 09:02 AM   #8
nateskywalker
Little Clucker
 
Join Date: Jan 2010
Posts: 13
Reputation: 0
Default Re: Problem with my anti teleport hack script

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);
}
}
}
nateskywalker is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
anti-money hack versus money hack impossibility(?) maij Help Archive 6 11/08/2010 01:58 AM
Anti Hack addysnow1 Help Archive 5 27/08/2009 05:23 PM
anti hack Schock Help Archive 5 18/02/2009 02:18 AM


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.