Engine Help !
#1

Hey Guys,

I want to do rent area,I have all the scripts that I need but there is a problem.When I enter the rent car I turn on the engine like a normal car and I dont have to pay ...

Here is the engine code:

pawn Код:
if(dialogid == VEHICLE_CONTROL_DIALOG+1)
    {
        if(response)
        {
   TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, COLOUR_INFORMATION, "You have started your engine.");
            GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(GetPlayerVehicleID(playerid), ON, lights, alarm, doors, bonnet, boot, objective);
        }
  if(!response)
        {
            SendClientMessage(playerid, COLOUR_INFORMATION, "You have stopped your engine.");
            GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(GetPlayerVehicleID(playerid), OFF, lights, alarm, doors, bonnet, boot, objective);
        }
        #if defined AUTO_REOPEN_DIALOG
        ShowVehicleControlDialog(playerid);
        #endif
        return 1;
    }
Tnx !
Reply
#2

Help guys ...
Reply
#3

I dont see here where you checked if the vehicle is a rentable vehicle ....-_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)