09.01.2019, 15:12
Hi, I've problem.
I tried make disable tuning etc. places for private vehicles, but it is not working.
I won't creating new object, because this will be working on default vehicles. Somebody have any ideas?
I tried make disable tuning etc. places for private vehicles, but it is not working.
I won't creating new object, because this will be working on default vehicles. Somebody have any ideas?
PHP код:
public OnEnterExitModShop(playerid, enterexit, interiorid){
if(enterexit == 1){
new VehicleID = GetPlayerVehicleID(playerid);
if(IfPlayerInPrivateVehicle(playerid, VehicleID)){
SetVehiclePos(VehicleID, startPos[VehicleID][0], startPos[VehicleID][1], startPos[VehicleID][2]);
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(VehicleID, 0);
SetVehicleVirtualWorld(VehicleID, 0);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleZAngle(VehicleID, 45.0000);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, C_RED, "You cannot modify this car!");
return 1;
}
}
return 1;
}