19.03.2015, 09:43
Hi!
How to use key for cmd?
//------------------------------------------
if(!strcmp(cmd, "/engine", true))
{
if(EngineSTATE[vid] == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,al arm,doors,bonnet,boot,objective);
EngineSTATE[vid] = 1;
SCM("you starts the engine of vehicle.");
}
else
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,bonnet,boot,objective);
EngineSTATE[vid] = 0;
SCM("you stop the engine of vehicle.");
}
return 1;
}
//------------------------------------
How can it write
if (PRESSED( MyKey ))
read /engine ?
i read some tutorials and post but they didn't work.
Sorry For Bad ENG.
How to use key for cmd?
//------------------------------------------
if(!strcmp(cmd, "/engine", true))
{
if(EngineSTATE[vid] == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,al arm,doors,bonnet,boot,objective);
EngineSTATE[vid] = 1;
SCM("you starts the engine of vehicle.");
}
else
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,bonnet,boot,objective);
EngineSTATE[vid] = 0;
SCM("you stop the engine of vehicle.");
}
return 1;
}
//------------------------------------
How can it write
if (PRESSED( MyKey ))
read /engine ?
i read some tutorials and post but they didn't work.
Sorry For Bad ENG.