Tuning, paintjobs etc. places - disable
#1

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?

PHP код:
public OnEnterExitModShop(playeridenterexitinteriorid){
       if(
enterexit == 1){
    new 
VehicleID GetPlayerVehicleID(playerid);
        if(
IfPlayerInPrivateVehicle(playeridVehicleID)){
            
SetVehiclePos(VehicleIDstartPos[VehicleID][0], startPos[VehicleID][1], startPos[VehicleID][2]);
            
SetPlayerInterior(playerid0);
            
LinkVehicleToInterior(VehicleID0);            
            
SetVehicleVirtualWorld(VehicleID0);
            
SetPlayerVirtualWorld(playerid0);
            
SetVehicleZAngle(VehicleID45.0000);
            
SetCameraBehindPlayer(playerid);
            
SendClientMessage(playeridC_RED"You cannot modify this car!");            
            return 
1;
        }
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)