if (GetPlayerVehicleSeat(playerid) == 0)
{
if (pInfo[playerid][PlayerSpeed] < 10)
{
if (GetPlayerInterior(playerid) != pInfo[playerid][PreviousInt])
{
switch (GetPlayerInterior(playerid))
{
case 0, 1, 2, 3:
{
GetPlayerPos(playerid, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]);
pInfo[playerid][PreviousInt] = GetPlayerInterior(playerid);
return 1;
}
}
}
if (IsPlayerInRangeOfPoint(playerid, 7.5, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]))
{
}
else
SendReportToAdmins(-1, playerid, "Airbreak-hack");
}
}
GetPlayerPos(playerid, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]);
pInfo[playerid][PreviousInt] = GetPlayerInterior(playerid);
stock GetName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
if (IsPlayerInRangeOfPoint(playerid, 7.5, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]))
{
}
else
SendReportToAdmins(-1, playerid, "Airbreak-hack");
if (!IsPlayerInRangeOfPoint(playerid, 7.5, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]))
{
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vehmodel != 592 || vehmodel != 577) SendReportToAdmins(-1, playerid, "Airbreak-hack");
}
if (GetPlayerVehicleSeat(playerid) == 0)
{
if (pInfo[playerid][PlayerSpeed] < 10)
{
if (GetPlayerInterior(playerid) != pInfo[playerid][PreviousInt])
{
switch (GetPlayerInterior(playerid))
{
case 0, 1, 2, 3:
{
GetPlayerPos(playerid, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]);
pInfo[playerid][PreviousInt] = GetPlayerInterior(playerid);
return 1;
}
}
}
if (IsPlayerInRangeOfPoint(playerid, 7.5, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]))
{
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vehmodel != 592 || vehmodel != 577)
{
SendReportToAdmins(-1, playerid, "Airbreak-hack");
}
}
}
}
GetPlayerPos(playerid, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]);
pInfo[playerid][PreviousInt] = GetPlayerInterior(playerid);
Well, in this way people can hack using Andromada/AT-400 and admins won't get any reports. I know this method already but i didn't use it because of the reason i just said. Aren't there any other ways to fix this and make this system a good working one?
|
if (GetPlayerVehicleSeat(playerid) == 0)
{
if (pInfo[playerid][PlayerSpeed] < 10)
{
if (GetPlayerInterior(playerid) != pInfo[playerid][PreviousInt])
{
switch (GetPlayerInterior(playerid))
{
case 0, 1, 2, 3:
{
GetPlayerPos(playerid, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]);
pInfo[playerid][PreviousInt] = GetPlayerInterior(playerid);
return 1;
}
}
}
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if (!IsPlayerInRangeOfPoint(playerid, 7.5, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]) && (vehmodel != 592 || vehmodel != 577))
SendReportToAdmins(-1, playerid, "Airbreak-hack");
else if (!IsPlayerInRangeOfPoint(playerid, 12.0, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]) && (vehmodel == 592 || vehmodel == 577))//increasing range for androm & at400 also if this not works try increasing range a little bit more in this line
}
}
GetPlayerPos(playerid, pInfo[playerid][PreviousX], pInfo[playerid][PreviousY], pInfo[playerid][PreviousZ]);
pInfo[playerid][PreviousInt] = GetPlayerInterior(playerid);