new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/motor\", cmdtext, true, 10) == 0){ if(IsPlayerInAnyVehicle(playerid)) { new vehid=GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective); if(engine==0) SetVehicleParamsEx(vehid,1,lights,alarm,doors,bonnet,boot,objective);//elindít else SetVehicleParamsEx(vehid,0,lights,alarm,doors,bonnet,boot,objective);//leállít}return 1;}return 0;}public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){if(newkeys & KEY_SUBMISSION){ if(IsPlayerInAnyVehicle(playerid)) { new vehid=GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective); if(engine==0) SetVehicleParamsEx(vehid,1,lights,alarm,doors,bonnet,boot,objective);//elindít else SetVehicleParamsEx(vehid,0,lights,alarm,doors,bonnet,boot,objective);//leállít}}return 1;}
RemoveBuildingForPlayer