SA-MP Forums Archive
Spawn Vehicles Hacker [+REPS] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawn Vehicles Hacker [+REPS] (/showthread.php?tid=491602)



Spawn Vehicles Hacker [+REPS] - MahdiGames - 31.01.2014

Hello there are in my server a player which spawning about 20 car and make it fly i dont know how but can i add auto ban for this people?


Re : Spawn Vehicles Hacker [+REPS] - ProduitToxic - 31.01.2014

/spec [Your Player ]

/rcon ban [ Your Player ]

/respawnallcar

enjoy


Re: Re : Spawn Vehicles Hacker [+REPS] - anou1 - 31.01.2014

Quote:
Originally Posted by ProduitToxic
Посмотреть сообщение
/spec [Your Player ]

/rcon ban [ Your Player ]

/respawnallcar

enjoy
And when he isnt online ? -__-


Re: Spawn Vehicles Hacker [+REPS] - PowerPC603 - 31.01.2014

You could use a variable that's set to 1 if your script spawns a car.

Then you can have a timer run every few seconds that loops through all vehicles, check if the vehicle exists and check if the variable is 1 for that vehicle.
If it's not 1, destroy the vehicle.

Is the player who spawns them near the cars that get spawned?
Then you could use a range-check as well to ban the closest player to that vehicle.


Re : Re: Re : Spawn Vehicles Hacker [+REPS] - ProduitToxic - 31.01.2014

Quote:
Originally Posted by anou1
Посмотреть сообщение
And when he isnt online ? -__-
It can put a different name and be log in as rcon its no player is that it is the admins and he grabs the cheat and ban and voila -. -


Re: Spawn Vehicles Hacker [+REPS] - MahdiGames - 31.01.2014

Well, from replys i can understand that SA:MP Scripts doesn't have a Exactly solution


Re : Spawn Vehicles Hacker [+REPS] - ProduitToxic - 31.01.2014

Unfortunately there is not an anti-cheat when the player spawn a car


Re: Spawn Vehicles Hacker [+REPS] - blackeagle1122 - 31.01.2014

There is a solution,
http://www.solidfiles.com/d/23c1df8126/anticarhack.rar

Put this filterscript and add that public to your gamemode,

forward OyuncuAracHilesiYapti(playerid);
public OyuncuAracHilesiYapti(playerid)
{
new string[128],name[24];
GetPlayerName(playerid,name,24);
format(string,sizeof(string),"%s(%d) is cheating...",name,playerid);
SendClientMessageToAll(string);
Ban(playerid);
return 1;
}


Re: Spawn Vehicles Hacker [+REPS] - Vince - 31.01.2014

There is no hack that I know of that can actually create a vehicle, rather they just teleport an existing vehicle to them.


Re: Spawn Vehicles Hacker [+REPS] - MahdiGames - 31.01.2014

how to fix that so