Tuning, paintjobs etc. places - disable
#2

Quote:
Originally Posted by CherryMond
Посмотреть сообщение
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;

Did you try to put it under onplayerentermodshop?
Reply


Messages In This Thread
Tuning, paintjobs etc. places - disable - by CherryMond - 09.01.2019, 15:12
Re: Tuning, paintjobs etc. places - disable - by Kevinas100 - 09.01.2019, 18:39
Re: Tuning, paintjobs etc. places - disable - by CherryMond - 09.01.2019, 19:35
Re: Tuning, paintjobs etc. places - disable - by Chyakka - 09.01.2019, 19:42
Re: Tuning, paintjobs etc. places - disable - by CherryMond - 09.01.2019, 19:54
Re: Tuning, paintjobs etc. places - disable - by Chyakka - 09.01.2019, 20:10
Re: Tuning, paintjobs etc. places - disable - by CherryMond - 09.01.2019, 20:23
Re: Tuning, paintjobs etc. places - disable - by Chyakka - 09.01.2019, 20:36
Re: Tuning, paintjobs etc. places - disable - by CherryMond - 09.01.2019, 20:43
Re: Tuning, paintjobs etc. places - disable - by Chyakka - 09.01.2019, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)