pawn Code:
forward HeliStart1(i);
public HeliStart1(i);
{
SendClientMessage(i,COLOR_GREEN,"** All Components Ready..");
SetTimerEx("HeliStart2",400,false,"i",i);
return 1;
}
forward HeliStart2(i);
public HeliStart2(i);
{
SendClientMessage(i,COLOR_GREY,"** Checking Transmitter..");
SetTimerEx("HeliStart3",1500,false,"i",i);
return 1;
}
forward HeliStart3(i);
public HeliStart3(i);
{
SendClientMessage(i,COLOR_GREEN,"** Transmitter Ready..");
SetTimerEx("HeliStart4",400,false,"i",i);
return 1;
}
forward HeliStart4(i);
public HeliStart4(i);
{
SendClientMessage(i,COLOR_GREY,"** Checking Fuel and Fuel pump..");
SetTimerEx("HeliStart5",1500,false,"i",i);
return 1;
}
forward HeliStart5(i);
public HeliStart5(i);
{
SendClientMessage(i,COLOR_GREEN,"** Fuel and Fuel Pump Ready..");
SetTimerEx("HeliStart6",500,false,"i",i);
return 1;
}
forward HeliStart6(i);
public HeliStart6(i);
{
SendClientMessage(i,COLOR_GREEN,"** You are clear to Take Off..");
SetTimerEx("HeliStart7",500,false,"i",i);
return 1;
}
forward HeliStart7(i);
public HeliStart7(i);
{
SendClientMessage(i,COLOR_GREY,"** Starting Helicopter Engine...");
SetTimerEx("StartingEngine",2000,false,"i",i);
return 1;
}
forward StartingEngine(i);
public StartingEngine(i)
{
SendClientMessage(i,COLOR_GREEN,"Engine started.");
new vid;
vid = GetPlayerVehicleID(i);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
return 1;
}