15.05.2018, 13:54
Код:
acCarCheck(playerid) { if(IsPlayerInAnyVehicle(playerid)) { new seat = GetPlayerVehicleSeat(playerid); new c = GetPlayerVehicleID(playerid); if(PlayerOwnsCar(c,playerid)) return 1; if(currentCar[playerid][0] != c) { hackKick(playerid, "Vehicle Hacks(Controlling/TPing into cars)", "Vehicle Hacks"); } else if(seat == 0 && currentCar[playerid][1] != 0 && seat != 128) { hackKick(playerid, "Vehicle Hacks(Controlling from passenger)", "Vehicle Hacks"); } } else if(currentCar[playerid][0] != 0 && currentCar[playerid][2] < 1) { currentCar[playerid][0] = 0; } return 1; }