30.11.2011, 13:41
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:
Tnx !
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;
}