29.06.2014, 06:17
Try This:
PHP код:
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);