ANTI-RAPIDFIRE, ANTI-CARWARP, BY: Freddy 01.18.2025 |
აღწერა: ძვირფასო მეგობრებო, დაიცავით სერვერი ჩვენთან ერთად და დააყენეთ ეს Filescript.
მოთამაშე რომელიც აიღებს Minigun, Uzi, Tech9 , Sawn off -ს ავოტმატურად გაიკიკება სერვერიდან.
Rapid -ზე გიჩვენებთ ადმინებო ანტიჩეთი და კიკის ნაცვლად შეგიძლიათ ბანიც დაადოთ მათ.
CarWarp - მოთამაშე თუ 5 წამში 3 მანქანაში გადაჯდება ავტომატურად გაიკიკება.
/*-----------------------GST Anti-Cheats Filterscript-----------------------
-Filterscipt contains: Anti-RapidFire, Anti-Car Warp.
Weapon ID 28 - Micro SMG/Uzi
Weapon ID 32 - Tec9
Weapon ID 38 - Minigun
=> Micro SMG/Uzi + Tec9 + Minigun = Disabled.
Skype Georgian Scripter's Team
*/
//----------------------------------------Include(s)----------------------------
#include //a_samp.inc
new shotTime[MAX_PLAYERS];//Time bullets shot in a sec or two
new shot[MAX_PLAYERS];
new pVehicleMods[MAX_PLAYERS];
new pVehicles[MAX_PLAYERS];
//Booleans
new bool: USE_ANTI_VEHICLE_HACK = true;
//Settings
#define MAX_ENTER_VEHICLES 3
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("The Anti-Cheat system has been created by MoHaNeD14");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
forward VehicleModReset(playerid);
public VehicleModReset(playerid)
{
pVehicleMods[playerid] = 0;
return 1;
}
stock GetAntiVehicleHackStatus()
{
new status[32];
if(USE_ANTI_VEHICLE_HACK == true) { status = ""COL_NICEGREEN"ENABLED"COL_WHITE""; }
else { status = ""COL_NICERED"DISABLED"COL_WHITE""; }
return status;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
// Vehicle hack detection
if(USE_ANTI_VEHICLE_HACK == true)
{
if(IsPlayerInAnyVehicle(playerid) || newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
pVehicles[playerid]++;
SetTimerEx("VehicleEnterReset", 3000, 0, "i", playerid);
if(pVehicles[playerid] >= MAX_ENTER_VEHICLES && GetPlayerVirtualWorld(playerid) != 1718)
{
SendClientMessage(playerid, -1, "ANTI-CHEAT: [VEHICLE HACKS] - You have been kicked for vehicle hacks.");
SetTimerEx("UnsetKick", 500, 0, "i", playerid);
}
}
}
return 1;
}
public OnPlayerConnect(playerid)
{
shotTime[playerid] =0;
shot[playerid]=0;
return 1;
}
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 32)
{
return 0;
}
else
{
if((gettime() - shotTime[playerid]) < 1)
{
shot[playerid]+=1;
}
else
{
shot[playerid]=0;
}
if(shot[playerid] > 10)
{
Kick(playerid);
}
shotTime[playerid] = gettime();
}
return 1;
}
-Filterscipt contains: Anti-RapidFire, Anti-Car Warp.
Weapon ID 28 - Micro SMG/Uzi
Weapon ID 32 - Tec9
Weapon ID 38 - Minigun
=> Micro SMG/Uzi + Tec9 + Minigun = Disabled.
Skype Georgian Scripter's Team
*/
//----------------------------------------Include(s)----------------------------
#include //a_samp.inc
new shotTime[MAX_PLAYERS];//Time bullets shot in a sec or two
new shot[MAX_PLAYERS];
new pVehicleMods[MAX_PLAYERS];
new pVehicles[MAX_PLAYERS];
//Booleans
new bool: USE_ANTI_VEHICLE_HACK = true;
//Settings
#define MAX_ENTER_VEHICLES 3
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("The Anti-Cheat system has been created by MoHaNeD14");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
forward VehicleModReset(playerid);
public VehicleModReset(playerid)
{
pVehicleMods[playerid] = 0;
return 1;
}
stock GetAntiVehicleHackStatus()
{
new status[32];
if(USE_ANTI_VEHICLE_HACK == true) { status = ""COL_NICEGREEN"ENABLED"COL_WHITE""; }
else { status = ""COL_NICERED"DISABLED"COL_WHITE""; }
return status;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
// Vehicle hack detection
if(USE_ANTI_VEHICLE_HACK == true)
{
if(IsPlayerInAnyVehicle(playerid) || newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
pVehicles[playerid]++;
SetTimerEx("VehicleEnterReset", 3000, 0, "i", playerid);
if(pVehicles[playerid] >= MAX_ENTER_VEHICLES && GetPlayerVirtualWorld(playerid) != 1718)
{
SendClientMessage(playerid, -1, "ANTI-CHEAT: [VEHICLE HACKS] - You have been kicked for vehicle hacks.");
SetTimerEx("UnsetKick", 500, 0, "i", playerid);
}
}
}
return 1;
}
public OnPlayerConnect(playerid)
{
shotTime[playerid] =0;
shot[playerid]=0;
return 1;
}
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 32)
{
return 0;
}
else
{
if((gettime() - shotTime[playerid]) < 1)
{
shot[playerid]+=1;
}
else
{
shot[playerid]=0;
}
if(shot[playerid] > 10)
{
Kick(playerid);
}
shotTime[playerid] = gettime();
}
return 1;
}